def get_file_paths(names, in_files, metadata):
    """
    Given a specific name, a list of input files an a metadata dictionary,
    return the file paths of the input files with that name
    """
    return [metadata[x['value']]['file_path']
            for x in in_files
            if x['name'] in names]