class_docstr: Utility class to deal with features extracted with extract_engine
  
  For multi-gpu feature extraction, each GPU saves features corresponding to its
  share of the data. This class offers an API to abstract away the loading of
  these extracted features.
class_docstr_tok: ["Utility","class","to","deal","with","features","extracted","with","extract_engine","For","multi-gpu","feature","extraction",",","each","GPU","saves","features","corresponding","to","its","share","of","the","data",".","This","class","offers","an","API","to","abstract","away","the","loading","of","these","extracted","features","."]
docstr: Load a shard of the extracted features and returns its content:
  features, targets and indices.
docstr_tok: ["Load","a","shard","of","the","extracted","features","and","returns","its","content",":","features",",","targets","and","indices","."]
code: def load_feature_shard(
      cls,
      paths: ExtractedFeaturesShardPaths,
      verbose=True,
      allow_pickle=False,
  ) -> ExtractedFeatures:
      """
      Load a shard of the extracted features and returns its content:
      features, targets and indices.
      """
      if verbose:
          logging.info(
              f"Loading:\n{paths.feature_file}\n{paths.targets_file}\n{paths.indices_file}"
          )
      return ExtractedFeatures(
          features=load_file(
              paths.feature_file,
              verbose=verbose,
              allow_pickle=allow_pickle,
          ),
          targets=load_file(
              paths.targets_file,
              verbose=verbose,
              allow_pickle=allow_pickle,
          ),
          indices=load_file(
              paths.indices_file,
              verbose=verbose,
              allow_pickle=allow_pickle,
          ),
      )
  
file_path: vissl/vissl/utils/extract_features_utils.py
imports: import logging
  import os
  import re
  from typing import List, NamedTuple
  import numpy
  from iopath.common.file_io import g_pathmgr
  from vissl.utils.io import load_file, makedir
label_desc: Use image node_id 2 for calling the ExtractedFeaturesLoader obj's underlying member method code with example usage: obj.load_feature_shard(cls, paths, verbose, allow_pickle) and returns: ExtractedFeatures