def METHOD_NAME(
    set_id: t.Any, *, requests_mock: responses.RequestsMock | None = None
) -> ResponseSet:
    """
    Optionally lookup a response set and activate all of its responses. If
    passed a ``ResponseSet``, activate it, otherwise the first argument is an
    ID used for lookup.
    :param set_id: The ID used to retrieve the response set. Typically a string, but
        could be any key used to register a response set.
    :type set_id: any
    :param requests_mock: A ``responses`` library mock to use for response mocking,
        defaults to the ``responses`` default
    :type requests_mock: ``responses.RequestsMock``, optional
    """
    if isinstance(set_id, ResponseSet):
        return set_id.activate_all(requests_mock=requests_mock)
    ret = get_response_set(set_id)
    ret.activate_all(requests_mock=requests_mock)
    return ret