code: def pprint(self, composites):
          
  
          # if only a single composite is used then cast to list
          # and allow for multiple root composites
  
          if composites and not isinstance(composites, list):
              composites = [composites]
  
          lines = []
  
          for composite in composites:
              type_ = composite["__type__"]
              if type_ in ("metadata", "validation"):
                  # types are being parsed directly, and not as an attr of a parent
                  lines += self.process_key_dict(type_, composite, level=0)
              else:
                  lines += self._format(composite)
  
          result = str(self.newlinechar.join(lines))
          return result
docs: Print out a nicely indented Mapfile