code: def series_replace(
      series,
      to_replace=no_default,
      value=no_default,
      inplace=False,
      limit=None,
      regex=False,
      method=no_default,
  ):
      return _replace(
          series,
          to_replace=to_replace,
          value=value,
          inplace=inplace,
          limit=limit,
          regex=regex,
          method=method,
      )
  
imports: import numpy
  import pandas
  from ...None import opcodes
  from ...core import recursive_tile
  from ...core.operand import OperandStage
  from ...serialization.serializables import FieldTypes, AnyField, Int32Field, ListField
  from ...utils import no_default
  from ..operands import DataFrameOperand, DataFrameOperandMixin, SERIES_TYPE, SERIES_CHUNK_TYPE
  from ..utils import build_df, build_series, parse_index
label_desc: Use image node_id 3 for calling a global function with example usage: series_replace(series, to_replace, value, inplace, limit, regex, method) and returns: _replace