code: def test_override_parse(self):
      class BarFormatter(string.Formatter):
          # returns an iterable that contains tuples of the form:
          # (literal_text, field_name, format_spec, conversion)
          def parse(self, format_string):
              for field in format_string.split("|"):
                  if field[0] == "+":
                      # it's markup
                      field_name, _, format_spec = field[1:].partition(
                          ":"
                      )
                      yield "", field_name, format_spec, None
                  else:
                      yield field, None, None, None
  
      fmt = BarFormatter()
      self.assertEqual(fmt.format("*|+0:^10s|*", "foo"), "*   foo    *")
  
imports: import unittest
  import string
  from string import Template
label_desc: Use image node_id 12 for calling the ModuleTest obj's underlying member method code with example usage: obj.test_override_parse() without return types