code: def load_json_or_yaml(file_path):
      
      with open(file_path, "r") as f:
          if os.path.splitext(file_path)[1] == ".json":
              return json.load(f)
          else:
              return inginious.common.custom_yaml.load(f)
docs: Load JSON or YAML depending on the file extension. Returns a dict