def METHOD_NAME(model_name, length_target):
    model = create_model(
        model_name=model_name,
        pretrained=True,
        features_only=True,
    )
    assert isinstance(model, nn.Cell), "Loading checkpoint error"
    x = ms.Tensor(np.random.randn(8, 3, 32, 32), dtype=ms.float32)
    out = model(x)
    assert len(out) == length_target, "Wrong feature extraction"