def METHOD_NAME(predictor):
    custom_leaf_types = (ConvBNReLU, DepthwiseSeparableConv, InvertedResidual, SqueezeExcite)
    model_space = MobileNetV3Space(width_multipliers=(0.5, 1.0), expand_ratios=(3., 6.))
    sample = {}
    model = model_space.random(sample)
    profiler = NnMeterProfiler(
        model_space, torch.randn(1, 3, 224, 224), predictor,
        custom_leaf_types=custom_leaf_types,
        simplify_shapes=True
    )
    result1 = profiler.profile(sample)
    profiler = NnMeterProfiler(
        model, torch.randn(1, 3, 224, 224), predictor,
        custom_leaf_types=custom_leaf_types,
        simplify_shapes=True
    )
    result2 = profiler.profile({})
    assert result1 > 0
    assert abs(result1 - result2) < 1