in cassette/utils.py [0:0]
def get_encoder_from_file_format(file_format):
"""Return the correct encoder that corresponds to the file format.
:param str file_format:
"""
return SUPPORTED_FORMATS.get(
file_format.lower(), DEFAULT_COMPATIBLE_ENCODER)