def METHOD_NAME(comp):
    """
    Returns the index or index set of this component
    """
    if type(comp.index_set()) != type({}):
        # Singly indexed component
        return comp.index_set()
    else:
        # Unindexed constraint
        return {None: None}