code: def _find_matching_path(
      work, request: _GetRequest
  ) -> Optional["lightning.app.storage.path.Path"]:
      for name in work._paths:
          candidate: lightning.app.storage.path.Path = getattr(
              work, name
          )
          if candidate.hash == request.hash:
              return candidate
      return None
  
file_path: pytorch-lightning/src/lightning/app/storage/copier.py
imports: import concurrent.futures
  import pathlib
  import threading
  from threading import Thread
  from time import time
  from typing import TYPE_CHECKING, Optional, Union
  from fsspec import AbstractFileSystem
  from fsspec.implementations.local import LocalFileSystem
  from lightning.app.core.queues import BaseQueue
  from lightning.app.storage.path import _filesystem
  from lightning.app.storage.requests import _ExistsRequest, _GetRequest
  from lightning.app.utilities.app_helpers import Logger
label_desc: Use image node_id 1 for calling a global function with example usage: _find_matching_path(work, request) and returns: None, candidate