code: def _nodearray_to_list(
      self, node_ids: cp.ndarray[IndexValue]
  ) -> list[NodeKey]:
      if self.key_to_id is None:
          return node_ids.tolist()
      return list(self._nodeiter_to_iter(node_ids.tolist()))
  
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 40 for calling the Graph obj's underlying member method code with example usage: obj._nodearray_to_list(node_ids) and returns: list, node_ids