def METHOD_NAME(metadata):
    """Download and clean test files.
    Args:
        metadata (dict): Feed information which comes from metadata test case.
    """
    # Download the file
    file.download_file(source_url=metadata['url'], dest_path=metadata['path'])
    # Decompress files
    if 'application/gzip' in metadata['expected_format']:
        file.decompress_gzip(gzip_file_path=metadata['path'], dest_file_path=metadata['decompressed_file'])
    elif 'application/x-bzip2' in metadata['expected_format']:
        file.decompress_bz2(bz2_file_path=metadata['path'], dest_file_path=metadata['decompressed_file'])
    yield
    # Clean downloaded file/s
    file.remove_file(file_path=metadata['path'])
    if 'application/gzip' in metadata['expected_format'] or 'application/x-bzip2' in metadata['expected_format']:
        file.remove_file(file_path=metadata['decompressed_file'])