code: def _remove_classorigin(obj):
          
          assert isinstance(obj, (CIMInstance, CIMClass))
          for prop in obj.properties:
              obj.properties[prop].class_origin = None
          if isinstance(obj, CIMClass):
              for method in obj.methods:
                  obj.methods[method].class_origin = None
docs: Remove all ClassOrigin attributes from the input object. The object
          may be a CIMInstance or CIMClass.
  
          Used to process the IncludeClassOrigin parameter of requests