code: def test_layerchoice():
      net = nas_nn.LayerChoice(
          [nn.Linear(3, 2, bias=False), nn.Linear(3, 3, bias=False)],
          label="a",
      )
      profiler = FlopsParamsProfiler(net, torch.randn(3))
      assert profiler.profile({"a": 0}).flops == 6
      assert profiler.profile({"a": 1}).flops == 9
  
file_path: nni/test/ut/nas/profiler/test_flops.py
imports: import pytest
  import torch
  from torch import nn
  import nni
  import nni.nas.nn.pytorch
  from nni.mutable import Categorical
  from nni.nas.profiler.pytorch.flops import FlopsParamsProfiler, FlopsProfiler, NumParamsProfiler, FlopsResult, register_flops_formula
  from ut.nas.nn.models import MODELS
label_desc: Use image node_id 5 for calling a global function with example usage: test_layerchoice() without return types