code: def test_expand_raises_with_missing_contig_in_map(self):
      # Empty contig_map should raise.
      with self.assertRaises(KeyError):
          ranges.expand(
              ranges.make_range("1", 10, 20), 1, contig_map={}
          )
  
      # Missing '1' from the contig map should raise.
      with self.assertRaises(KeyError):
          ranges.expand(
              ranges.make_range("1", 10, 20),
              1,
              contig_map={
                  "2": reference_pb2.ContigInfo(name="2", n_bases=50),
              },
          )
  
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 44 for calling the RangesTests obj's underlying member method code with example usage: obj.test_expand_raises_with_missing_contig_in_map() without return types