class_docstr: Class to encapsulate the schema information for a heterogeneous graph.
  
  Typically this should be created from a StellarGraph object, using the
  :func:`~stellargraph.core.graph.create_graph_schema` method.
class_docstr_tok: ["Class","to","encapsulate","the","schema","information","for","a","heterogeneous","graph",".","Typically","this","should","be","created","from","a","StellarGraph","object",",","using","the",":","func",":","`","~stellargraph.core.graph.create_graph_schema","`","method","."]
docstr: Return node type index from the type name
  
  Args:
      index: name of the node type.
  
  Returns:
      Numerical node type index
docstr_tok: ["Return","node","type","index","from","the","type","name","Args",":","index",":","name","of","the","node","type",".","Returns",":","Numerical","node","type","index"]
code: def node_index(self, name):
      """
      Return node type index from the type name
  
      Args:
          index: name of the node type.
  
      Returns:
          Numerical node type index
      """
      try:
          index = self.node_types.index(name)
      except ValueError:
          warnings.warn(
              "Node key '{}' not found.".format(name),
              RuntimeWarning,
              stacklevel=2,
          )
          index = None
      return index
  
file_path: stellargraph/stellargraph/core/schema.py
imports: import queue
  import warnings
  from collections.__init__ import namedtuple
  from ..core.utils import is_real_iterable
label_desc: Use image node_id 4 for calling the GraphSchema obj's underlying member method code with example usage: obj.node_index(name) and returns: index