code: def _series_to_df(in_series, xdf):
      in_df = in_series.to_frame()
      if in_series.name is not None:
          in_df.columns = xdf.Index([in_series.name])
      return in_df
  
imports: import numpy
  import pandas
  from ...None import opcodes
  from ...core import OutputType
  from ...core.operand import MapReduceOperand, OperandStage
  from ...serialization.serializables import Int32Field, ListField
  from ...utils import lazy_import
  from ..operands import DataFrameOperandMixin
  from ..sort.psrs import DataFramePSRSChunkOperand
label_desc: Use image node_id 1 for calling a global function with example usage: _series_to_df(in_series, xdf) and returns: in_df