<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def path_wo_ns(obj):
 """ Return path of an instance or instance path without host or namespace. Creates copy of the object so the original is not changed. """

    if isinstance(obj, pywbem.CIMInstance):
        path = obj.path.copy()
    elif isinstance(obj, pywbem.CIMInstanceName):
        path = obj.copy()
    else:
        assert False

    path.host = None
    path.namespace = None
    return path