code: def from_index(in_index, dtype=None, extract_multi_index=False):
      op = TensorFromDataFrame(
          dtype=dtype or in_index.dtype,
          gpu=in_index.op.gpu,
          extract_multi_index=extract_multi_index,
      )
      return op(in_index, order=TensorOrder.F_ORDER)
  
file_path: mars/mars/tensor/datasource/from_dataframe.py
imports: from ...None import opcodes
  from ...serialization.serializables import BoolField, KeyField
  from ..utils import to_numpy
  from ..core import TensorOrder
  from .core import TensorHasInput
label_desc: Use image node_id 3 for calling a global function with example usage: from_index(in_index, dtype, extract_multi_index) and returns: op