code: def _dict_to_nodearrays(
      self,
      d: dict[NodeKey, NodeValue],
      dtype: Dtype | None = None,
  ) -> tuple[cp.ndarray[IndexValue], cp.ndarray[NodeValue]]:
      if self.key_to_id is None:
          indices_iter = d
      else:
          indices_iter = map(self.key_to_id.__getitem__, d)
      node_ids = cp.fromiter(indices_iter, index_dtype)
      if dtype is None:
          values = cp.array(list(d.values()))
      else:
          values = cp.fromiter(d.values(), dtype)
      return node_ids, values
  
imports: from __future__ import annotations
  import operator
  from copy import deepcopy
  from typing import TYPE_CHECKING
  import cupy
  import networkx
  import numpy
  import pylibcugraph
  import nx_cugraph
  from ..utils import index_dtype
label_desc: Use image node_id 46 for calling the Graph obj's underlying member method code with example usage: obj._dict_to_nodearrays(d, dtype) and returns: node_ids,  values