code: def __contains__(self, n: NodeKey) -> bool:
      if self.key_to_id is not None:
          container = self.key_to_id
      else:
          container = range(self._N)
      try:
          return n in container
      except TypeError:
          return False
  
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 15 for calling the Graph obj's underlying member method code with example usage: obj.__contains__(n) and returns: unknown, False