fn generics_shape_from_config(
    config: &Config,
    shape: Shape,
    offset: usize
) -> Option<Shape>