code: def test_from_regions(self, regions, expected):
      # For convenience we allow 'test.bed' in our regions but the actual file
      # path is in our testdata directory.
      for i in range(len(regions)):
          if regions[i] == "test.bed":
              regions[i] = test_utils.genomics_core_testdata("test.bed")
  
      self.assertEqual(list(ranges.from_regions(regions)), expected)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  from absl.testing import absltest
  from absl.testing import parameterized
  import mock
  from third_party.nucleus.protos import position_pb2
  from third_party.nucleus.protos import reference_pb2
  from third_party.nucleus.protos import variants_pb2
  from third_party.nucleus.testing import test_utils
  from third_party.nucleus.util import ranges
label_desc: Use image node_id 20 for calling the RangesTests obj's underlying member method code with example usage: obj.test_from_regions(regions, expected) without return types