code: def add_v1File(self, f: bindings.v1File) -> None:
      self.items.append(f)
      self.size += v1file_utils.v1File_size(f)
      if self.size > self.limit:
          raise ValueError(
              "The total size of context directory and included files and directories exceeds "
              f" the maximum allowed size {util.sizeof_fmt(self.limit)}.\n"
              "Consider using either .detignore files inside directories to specify that certain "
              "files or subdirectories should be omitted."
          )
  
file_path: determined/harness/determined/common/context.py
imports: import collections
  import pathlib
  from typing import Any, Dict, Iterable, List, Optional
  from determined.common import constants, detignore, util, v1file_utils
  from determined.common.api import bindings
label_desc: Use image node_id 2 for calling the _Builder obj's underlying member method code with example usage: obj.add_v1File(f) without return types