code: def build_file_set(all_files: List[Path], max_len: int):
      truncated_files = [
          truncate_file(file, max_len) for file in all_files
      ]
      return set(truncated_files)
  
imports: import argparse
  import math
  import pickle
  import random
  from dataclasses import dataclass
  from itertools import chain
  from pathlib import Path
  from typing import Dict, List
  import common
  import pandas
  import torch
  import torch.nn
  import torch.nn.functional
  import torchtext
  from torchtext.functional import to_tensor
  from tqdm import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: build_file_set(all_files, max_len) and returns: set