def action_to_upper(action):
    """
     action to upper receives an action in pddl_action_representation, and returns it in upper case.

    :param action: A action in PddlActionRepresentation
    :return: PddlActionRepresentation: The action in upper case
    """
    if action:
        action.name = action.name.upper()
        action.types = [type.upper() for type in action.types]
        action.predicates = [pred.upper() for pred in action.predicates]
        action.requirements = [req.upper() for req in action.requirements]
        action.action = action.action.upper()
    return action