code: def _get_primitive_attribute(
      self, primitive_attributes: Dict[str, Any], key: str, dtype
  ) -> Optional[np.ndarray]:
      accessor_index = primitive_attributes.get(key)
      if accessor_index is None:
          return None
      primitive_attribute = self._access_data(accessor_index)
      if key == "JOINTS_0":
          pass
      elif dtype == np.uint8:
          primitive_attribute /= 255.0
      elif dtype == np.uint16:
          primitive_attribute /= 65535.0
      else:
          if dtype != np.float32:
              raise ValueError("Unexpected data type")
      primitive_attribute = primitive_attribute.astype(dtype)
      return primitive_attribute
  
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 5 for calling the _GLTFLoader obj's underlying member method code with example usage: obj._get_primitive_attribute(primitive_attributes, key, dtype) and returns: primitive_attribute, None