code: def _from_pandas(obj: Any):
      if isinstance(obj, pd.DataFrame):
          from ..datasource.dataframe import from_pandas
  
          return from_pandas(obj)
      elif isinstance(obj, pd.Series):
          from ..datasource.series import from_pandas
  
          return from_pandas(obj)
      elif isinstance(obj, np.ndarray):
          return mt.tensor(obj)
      else:
          return obj
  
imports: import numpy
  import pandas
  from ...None import opcodes
  from ...None import tensor
  from ...config import options
  from ...core import OutputType
  from ...serialization.serializables import BoolField
  from ..core import MultiIndex
  from ..operands import DataFrameOperand, DataFrameOperandMixin, DATAFRAME_TYPE, ENTITY_TYPE, INDEX_TYPE, SERIES_TYPE, TENSOR_TYPE
  from typing import Any
label_desc: Use image node_id 1 for calling a global function with example usage: _from_pandas(obj) and returns: from_pandas, from_pandas, mt, obj