code: def __call__(self, data):
      if self.nrows is None:
          nrows = data.shape[0]
      else:
          nrows = self.nrows
      index_value = parse_index(pd.RangeIndex(start=0, stop=nrows))
      dtypes = pd.Series(
          dict((k, np.dtype(v)) for k, v in data.dtype.descr)
      )
      columns_value = parse_index(
          pd.Index(data.dtype.names), store_data=True
      )
      return self.new_dataframe(
          [data],
          (data.shape[0], len(data.dtype.names)),
          dtypes=dtypes,
          index_value=index_value,
          columns_value=columns_value,
      )
  
file_path: mars/mars/dataframe/datasource/from_records.py
imports: import numpy
  import pandas
  from ...None import opcodes
  from ...core import OutputType
  from ...serialization.serializables import BoolField, ListField, Int32Field
  from ...tensor.core import TENSOR_TYPE
  from ..operands import DataFrameOperand, DataFrameOperandMixin
  from ..utils import parse_index
label_desc: Use image node_id 2 for calling the DataFrameFromRecords obj's underlying member method code with example usage: obj.__call__(data) and returns: self