code: def _cimdatetime_representer(dumper, cimdatetime):
      
      cimdatetime_str = str(cimdatetime)
      node = dumper.represent_scalar(CIMDATETIME_TAG, cimdatetime_str)
      return node
docs: PyYAML representer function for CIMDateTime objects.
      This is needed for yaml.safe_dump() to support CIMDateTime.