code: def match_path(self, path):
      wd = self.get_paths()
      if path == "/":
          logger.debug("return root")
          return wd
      for part in path.lstrip("/").split("/"):
          logger.debug(f"path:{path} part:{part}")
          if part not in wd:
              return None
          wd = wd[part]
      logger.debug("return")
      return wd
  
imports: import errno
  import locale
  import logging
  import os
  import stat
  import sys
  import time
  from optparse import Option, OptionParser
  import nibabel
  import nibabel.dft
label_desc: Use image node_id 3 for calling the DICOMFS obj's underlying member method code with example usage: obj.match_path(path) and returns: wd, wd, None