def get_file_metadata(data_as_string: str): if data_as_string != \'*.raw.seq\': raise TypeError data_lines = data_as_string.split("\\n")