code: def test_mobilenet_v3():
      net = MobileNetV3Space()
  
      sample = {}
      model = net.random(sample)
      flops, params, _ = count_flops_params(
          model, torch.randn(1, 3, 224, 224)
      )
  
      profiler = FlopsParamsProfiler(
          net,
          torch.randn(1, 3, 224, 224),
          count_bias=False,
          count_normalization=False,
          count_activation=False,
      )
      result = profiler.profile(sample)
      assert result.flops == flops
      assert result.params == params
  
file_path: nni/test/algo/nas/profiler/test_flops.py
imports: import torch
  from nni.compression.utils.counter import count_flops_params
  from nni.nas.hub.pytorch import ProxylessNAS, MobileNetV3Space, AutoFormer, ShuffleNetSpace
  from nni.nas.profiler.pytorch.flops import FlopsParamsProfiler
label_desc: Use image node_id 2 for calling a global function with example usage: test_mobilenet_v3() without return types