class_docstr: Utility functions used to preprocess, save, load, partition, etc. the Criteo
  dataset in a binary (numpy) format.
class_docstr_tok: ["Utility","functions","used","to","preprocess",",","save",",","load",",","partition",",","etc",".","the","Criteo","dataset","in","a","binary","(","numpy",")","format","."]
docstr: Returns the shape of an npy file using only its header.
  
  Args:
      path (str): Input npy file path.
      path_manager_key (str): Path manager key used to load from different
          filesystems.
  
  Returns:
      shape (Tuple[int, ...]): Shape tuple.
docstr_tok: ["Returns","the","shape","of","an","npy","file","using","only","its","header",".","Args",":","path","(","str",")",":","Input","npy","file","path",".","path_manager_key","(","str",")",":","Path","manager","key","used","to","load","from","different","filesystems",".","Returns",":","shape","(","Tuple","[","int",",","...","]",")",":","Shape","tuple","."]
code: def get_shape_from_npy(
      path: str, path_manager_key: str = PATH_MANAGER_KEY
  ) -> Tuple[int, ...]:
      """
      Returns the shape of an npy file using only its header.
  
      Args:
          path (str): Input npy file path.
          path_manager_key (str): Path manager key used to load from different
              filesystems.
  
      Returns:
          shape (Tuple[int, ...]): Shape tuple.
      """
      path_manager = PathManagerFactory().get(path_manager_key)
      with path_manager.open(path, "rb") as fin:
          np.lib.format.read_magic(fin)
          shape, _order, _dtype = np.lib.format.read_array_header_1_0(
              fin
          )
          return shape
  
imports: import os
  import shutil
  import time
  from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Tuple, Union
  import numpy
  import torch
  import torch.utils.data.datapipes
  from iopath.common.file_io import PathManager, PathManagerFactory
  from pyre_extensions import none_throws
  from torch.utils.data import IterableDataset, IterDataPipe
  from torchrec.datasets.utils import Batch, LoadFiles, PATH_MANAGER_KEY, ReadLinesFromCSV, safe_cast
  from torchrec.sparse.jagged_tensor import KeyedJaggedTensor
label_desc: Use image node_id 2 for calling the BinaryCriteoUtils obj's underlying member method code with example usage: obj.get_shape_from_npy(path, path_manager_key) and returns: shape