def parse_execution_context(execution_context):
    """
        Arguments
        ---------
            execution_context
                An execution context (execution_id, Composition)

        :return: the execution_id associated with **execution_context**
    """
    try:
        return execution_context.default_execution_id
    except AttributeError:
        return execution_context