docstr: Get the binary data from a buffer as a 1D numpy array of bytes.
  This is implemented for explicit uri data buffers or the main GLB data
  segment.
docstr_tok: ["Get","the","binary","data","from","a","buffer","as","a","1D","numpy","array","of","bytes",".","This","is","implemented","for","explicit","uri","data","buffers","or","the","main","GLB","data","segment","."]
code: def get_binary_data(self, buffer_index: int):
      """
      Get the binary data from a buffer as a 1D numpy array of bytes.
      This is implemented for explicit uri data buffers or the main GLB data
      segment.
      """
      buffer_ = self._buffers[buffer_index]
      binary_data = self._binary_data.get(buffer_index)
      if binary_data is None:  # Lazily decode binary data
          uri = buffer_.get("uri")
          if not uri.startswith(_DATA_URI_PREFIX):
              raise NotImplementedError("Unexpected URI type")
          binary_data = b64decode(uri[len(_DATA_URI_PREFIX) :])
          binary_data = np.frombuffer(binary_data, dtype=np.uint8)
          self._binary_data[buffer_index] = binary_data
      return binary_data
  
imports: import json
  import struct
  import warnings
  from base64 import b64decode
  from collections import defaultdict, deque
  from enum import IntEnum
  from io import BytesIO
  from typing import Any, BinaryIO, cast, Dict, List, Optional, Tuple, Union
  import numpy
  import torch
  from iopath.common.file_io import PathManager
  from PIL import Image
  from pytorch3d.io.utils import _open_file, PathOrStr
  from pytorch3d.renderer.mesh import TexturesBase, TexturesUV, TexturesVertex
  from pytorch3d.structures import join_meshes_as_scene, Meshes
  from pytorch3d.transforms import quaternion_to_matrix, Transform3d
  from .pluggable_formats import endswith, MeshFormatInterpreter
label_desc: Use image node_id 6 for calling the _GLTFLoader obj's underlying member method code with example usage: obj.get_binary_data(buffer_index) and returns: binary_data