code: def test_to_cigar_units(self, to_convert, expected):
      # We can convert the raw form.
      to_convert = list(to_convert)
      expected = list(expected)
  
      actual = cigar.to_cigar_units(to_convert)
      self.assertEqual(actual, expected)
  
      # We can also convert the string form by formatting actual.
      self.assertEqual(
          cigar.to_cigar_units(cigar.format_cigar_units(actual)),
          expected,
      )
  
file_path: deepvariant/third_party/nucleus/util/cigar_test.py
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
  from third_party.nucleus.protos import cigar_pb2
  from third_party.nucleus.util import cigar
label_desc: Use image node_id 5 for calling the CigarTests obj's underlying member method code with example usage: obj.test_to_cigar_units(to_convert, expected) without return types