def get_data(filename):
name, ext = get_file_extension(filename)<EOL>func = json_get_data if ext == '<STR_LIT>' else yaml_get_data<EOL>return func(filename)<EOL>
Calls right function according to file extension