def load_configuration(configuration):
    if isinstance(configuration, dict):
        return configuration
    else:
        with open(configuration) as configfile:
            return json.load(configfile)
Returns a dictionary, accepts a dictionary or a path to a JSON file.
dataset/ETHPy150Open F-Secure/see/see/environment.py/load_configuration