code: def test_dispatch_opset_version_returns_correct_version(
      self, available_opsets: Sequence[int], target: int, expected: int
  ):
      actual = registration._dispatch_opset_version(
          target, available_opsets
      )
      self.assertEqual(actual, expected)
  
imports: from typing import Sequence
  from torch.onnx import errors
  from torch.onnx._internal import registration
  from torch.testing._internal import common_utils
label_desc: Use image node_id 1 for calling the TestGlobalHelpers obj's underlying member method code with example usage: obj.test_dispatch_opset_version_returns_correct_version(available_opsets, target, expected) without return types