code: def test_torch_dep_regex(dep, expected):
      match = re.match(TORCH_DEP_REGEX, dep)
      if expected is None:
          assert match is None
          return
      assert match is not None
      assert match.groups() == expected
  
imports: import re
  import pytest
  from wandb.sdk.launch.builder.templates._wandb_bootstrap import TORCH_DEP_REGEX
label_desc: Use image node_id 1 for calling a global function with example usage: test_torch_dep_regex(dep, expected) without return types