code: def _check_for_allow_duplicates(self, path):
      possible_paths = [
          self._to_shared_path(
              path,
              component_name=component_name,
          )
          for component_name in self._collect_component_names()
          if component_name != self.component_name
      ]
      matches = [self.fs.exists(p) for p in possible_paths]
  
      if sum(matches):
          raise Exception(
              f"The file {path} can't be added as already found in the Drive."
          )
  
imports: import os
  import pathlib
  import shutil
  import sys
  from copy import deepcopy
  from time import sleep, time
  from typing import Dict, List, Optional, Union
  from lightning.app.storage.path import LocalFileSystem, _filesystem, _shared_storage_path
  from lightning.app.utilities.component import _is_flow_context
label_desc: Use image node_id 15 for calling the Drive obj's underlying member method code with example usage: obj._check_for_allow_duplicates(path) without return types