class_docstr: A plain python object modeling a heterogeneous graph with various
  attributes (Node types in :class:`HeteroGraph` require string type).
  
  Args:
      G (:class:`networkx.classes.graph`): A NetworkX graph object which
          contains features and labels for each node type and edge type.
      **kwargs: Keyworded argument list with keys such
          as :obj:`"node_feature"`, :obj:`"node_label"` and
          corresponding attributes.
class_docstr_tok: ["A","plain","python","object","modeling","a","heterogeneous","graph","with","various","attributes","(","Node","types","in",":","class",":","`","HeteroGraph","`","require","string","type",")",".","Args",":","G","(",":","class",":","`","networkx.classes.graph","`",")",":","A","NetworkX","graph","object","which","contains","features","and","labels","for","each","node","type","and","edge","type",".","*","*","kwargs",":","Keyworded","argument","list","with","keys","such","as",":","obj",":","`","``","node_feature","''","`",",",":","obj",":","`","``","node_label","''","`","and","corresponding","attributes","."]
docstr: Returns the node type of a node in its dict.
  
  Args:
      node_dict (dictionary): The node dictionary.
  
  Returns:
      the string of the node type: node type.
docstr_tok: ["Returns","the","node","type","of","a","node","in","its","dict",".","Args",":","node_dict","(","dictionary",")",":","The","node","dictionary",".","Returns",":","the","string","of","the","node","type",":","node","type","."]
code: def _get_node_type(self, node_dict: Dict):
      r"""
      Returns the node type of a node in its dict.
  
      Args:
          node_dict (dictionary): The node dictionary.
  
      Returns:
          the string of the node type: node type.
      """
      if "node_type" not in node_dict:
          return None
      return node_dict["node_type"]
  
imports: import math
  import copy
  import random
  import torch
  import networkx
  import numpy
  from deepsnap.graph import Graph
  from typing import Dict, List, Union
  import warnings
label_desc: Use image node_id 11 for calling the HeteroGraph obj's underlying member method code with example usage: obj._get_node_type(node_dict) and returns: node_dict, None