def METHOD_NAME(obj, phobostype=None):
    """Returns the name of an object relevant to Phobos.
    An optional *phobostype* parameter can be provided for objects with multiple
    uses, such as link objects (which also contain joint and motor information).
    If no *phobostype* is provided, the phobostype of the object is used.
    The object name itself is returned, stripped of namespaces.
    Args:
      obj(bpy.types.Object): object for which the name is requested
      phobostype: phobostype if relevant (e.g. 'motor') (Default value = None)
    Returns:
      : str -- The object's name
    """
    if obj is None:
        return None
    nametype = phobostype if phobostype else obj.phobostype
    return stripNamespaceFromName(obj.name)