import json


def load_transition_types(transitions_uri):
    """Loads a transition .json file and returns a dictionary mapping
        transition ids to their types.

        transitions_uri - path to a .json file with the format

            {
                "modify_landscape_structure": "restoration", ... }


        returns a dictionary whose keys and values are found in the transitions
            json file"""

    transitions_file = open(transitions_uri)
    transitions_string = transitions_file.read()
    transition_dictionary = json.loads(transitions_string)
    return transition_dictionary