code: def latch_file_info(self, args):
          
          self.file_dict.clear()
          for key, val in self.file_args.items():
              try:
                  file_path = args[key]
                  if file_path is None:
                      continue
                  # 'args' is special
                  if key[0:4] == 'args':
                      if isinstance(file_path, list):
                          tokens = file_path
                      elif isinstance(file_path, str):
                          tokens = file_path.split()
                      else:
                          raise TypeError(
                              "Args has type %s, expect list or str" % type(file_path))
                      for token in tokens:
                          self.file_dict[token.replace('.gz', '')] = val
                  else:
                      self.file_dict[file_path.replace('.gz', '')] = val
              except KeyError:
                  pass
docs: Extract the file paths from a set of arguments