code: def NewOutputModule(cls, name, output_mediator):
      
      output_class = cls.GetOutputClass(name)
      return output_class(output_mediator)
docs: Creates a new output module object for the specified output format.
  
      Args:
        name (str): name of the output module.
        output_mediator (OutputMediator): output mediator.
  
      Returns:
        OutputModule: output module.
  
      Raises:
        KeyError: if there is no output class found with the supplied name.
        ValueError: if name is not a string.