code: def get_data(filename):
      
      name, ext = get_file_extension(filename)
      func = json_get_data if ext == '.json' else yaml_get_data
      return func(filename)
docs: Calls right function according to file extension