def _get_operator(spec, context):
    """
    Gets operator from context
    """
    try:
        return context[spec]
    except KeyError:
        print(
            f"Error: Operator ${spec} is not defined. Make sure you are importing it in the modules section."
        )
        raise