code: def _iparam_instancename(instancename):
          
  
          if isinstance(instancename, CIMInstanceName):
              instancename = instancename.copy()
              instancename.host = None
              instancename.namespace = None
          elif instancename is None:
              pass
          else:
              raise TypeError(
                  _format("The 'InstanceName' argument of the WBEMConnection "
                          "operation has invalid type {0} (must be None, a "
                          "string, or a CIMInstanceName)",
                          type(instancename)))
          return instancename
docs: Convert an instance name specified in an operation method into a CIM
          object that can be passed to imethodcall().