code: def testAltAllelesWithVariant(self):
      alts = list(self.variant.alternate_bases)
      example = dv_utils_using_clif.make_example(
          self.variant, alts, b"foo", self.default_shape
      )
      self.assertEqual(
          [0], dv_utils.example_alt_alleles_indices(example)
      )
      with mock.patch(
          "deepvariant.dv_utils.example_variant"
      ) as mock_ex_variant:
          # Providing variant directly avoids the call to example_variant().
          self.assertEqual(
              alts,
              dv_utils.example_alt_alleles(
                  example, variant=self.variant
              ),
          )
          mock_ex_variant.assert_not_called()
  
          # Checks that we load the variant if needed and that our mock is working.
          mock_ex_variant.return_value = self.variant
          self.assertEqual(alts, dv_utils.example_alt_alleles(example))
          mock_ex_variant.assert_called_once_with(example)
  
file_path: deepvariant/deepvariant/dv_utils_using_clif_test.py
imports: from unittest import mock
  from absl.testing import absltest
  from absl.testing import parameterized
  import tensorflow
  from deepvariant import dv_utils
  from deepvariant import dv_utils_using_clif
  from third_party.nucleus.protos import variants_pb2
label_desc: Use image node_id 4 for calling the DVUtilsUsingClifTest obj's underlying member method code with example usage: obj.testAltAllelesWithVariant() without return types