code: def get_items(self) -> List[bindings.v1File]:
      print()
  
      # Check for conflicting root items, which may arise when --include conflicts with either
      # the --context or another --include.
      root_items = (
          f.path for f in self.items if "/" not in f.path.rstrip("/")
      )
      duplicates = [
          k for k, v in collections.Counter(root_items).items() if v > 1
      ]
      if len(duplicates) == 1:
          raise ValueError(
              f"duplicate path detected: {repr(duplicates[0])}"
          )
      elif duplicates:
          raise ValueError(f"duplicate paths detected: {duplicates}")
  
      return self.items
  
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 5 for calling the _Builder obj's underlying member method code with example usage: obj.get_items() and returns: self