class_docstr: Class of node data which is used for DGLGraph construction. Internal use only.
class_docstr_tok: ["Class","of","node","data","which","is","used","for","DGLGraph","construction",".","Internal","use","only","."]
code: def load_from_csv(
      meta: MetaNode,
      data_parser: Callable,
      base_dir=None,
      separator=",",
  ):
      df = BaseData.read_csv(meta.file_name, base_dir, separator)
      node_ids = BaseData.pop_from_dataframe(df, meta.node_id_field)
      graph_ids = BaseData.pop_from_dataframe(df, meta.graph_id_field)
      if node_ids is None:
          raise DGLError(
              "Missing node id field [{}] in file [{}].".format(
                  meta.node_id_field, meta.file_name
              )
          )
      ntype = meta.ntype
      ndata = data_parser(df)
      return NodeData(node_ids, ndata, type=ntype, graph_id=graph_ids)
  
imports: import ast
  import os
  from typing import Callable, List, Optional
  import numpy
  import pandas
  import pydantic
  import yaml
  from ..None import backend
  from ..base import dgl_warning, DGLError
  from ..convert import heterograph
label_desc: Use image node_id 2 for calling the NodeData obj's underlying member method code with example usage: obj.load_from_csv(meta, data_parser, base_dir, separator) and returns: NodeData