code: def series_from_index(ind, index=None, name=None):
      name = name or ind.name or 0
      if index is not None:
          index = Index(index)
      op = SeriesFromIndex(input_=ind, index=index, name=name)
      return op(ind, new_index=index, name=name)
  
file_path: mars/mars/dataframe/datasource/from_index.py
imports: from ...None import opcodes
  from ...core import recursive_tile
  from ...serialization.serializables import AnyField, KeyField
  from ..initializer import Index
  from ..operands import DataFrameOperand, DataFrameOperandMixin
label_desc: Use image node_id 1 for calling a global function with example usage: series_from_index(ind, index, name) and returns: op