class_docstr: The NumPy data type Enum for writing/reading the MMapIndexedDataset indices
      
class_docstr_tok: ["The","NumPy","data","type","Enum","for","writing\/reading","the","MMapIndexedDataset","indices"]
docstr: Get the code from the dtype
  
  Args:
      value (Type[numpy.number]): The dtype
  
  Returns:
      int: The code
docstr_tok: ["Get","the","code","from","the","dtype","Args",":","value","(","Type","[","numpy.number","]",")",":","The","dtype","Returns",":","int",":","The","code"]
code: def code_from_dtype(cls, value: Type[numpy.number]) -> int:
      """Get the code from the dtype
  
      Args:
          value (Type[numpy.number]): The dtype
  
      Returns:
          int: The code
      """
      return cls[value.__name__].value
  
imports: import logging
  import os
  import shutil
  import struct
  import time
  from enum import Enum
  from functools import lru_cache
  from itertools import accumulate
  from types import TracebackType
  from typing import List, Optional, Tuple, Type, Union
  import numpy
  import torch
  from megatron.core.datasets.utils import log_single_rank
label_desc: Use image node_id 1 for calling the DType obj's underlying member method code with example usage: obj.code_from_dtype(cls, value) and returns: cls