code: def from_path(self, path):
      assert isinstance(path, str)
  
      if "genome" in path and path.endswith(".npy"):
          path = str(int(path.split("_")[-1].split(".")[0])) + ".npy"
  
      features, infos = self._get_image_features_and_info(path)
  
      item = {}
      for idx, image_feature in enumerate(features):
          item["image_feature_%s" % idx] = image_feature
          if infos is not None:
              # infos[idx].pop("cls_prob", None)
              item["image_info_%s" % idx] = infos[idx]
  
      return item
  
file_path: mmf/mmf/datasets/databases/features_database.py
imports: import logging
  from multiprocessing.pool import ThreadPool
  import tqdm
  from mmf.datasets.databases.image_database import ImageDatabase
  from mmf.datasets.databases.readers.feature_readers import FeatureReader
  from mmf.utils.distributed import is_main
  from mmf.utils.general import get_absolute_path
label_desc: Use image node_id 9 for calling the FeaturesDatabase obj's underlying member method code with example usage: obj.from_path(path) and returns: item