code: def _build_result_chunk(
      cls,
      op: "DataFrameReplace",
      in_chunks,
      with_fill=False,
      stage=None,
  ):
      in_obj = op.inputs[0]
      out_obj = op.outputs[0]
      in_chunk = in_chunks[0]
  
      kw = in_chunk.params
      new_shape = list(in_chunk.shape)
      if with_fill:
          new_shape[0] = 1
  
      if in_obj.ndim == 2:
          new_dtypes = out_obj.dtypes[in_chunk.dtypes.index]
          kw.update(
              dict(
                  dtypes=new_dtypes,
                  shape=tuple(new_shape),
                  column_values=parse_index(new_dtypes.index),
              )
          )
      else:
          kw.update(dict(dtype=out_obj.dtype, shape=tuple(new_shape)))
  
      new_op = op.copy().reset_key()
      new_op.stage = stage
      return new_op.new_chunk(in_chunks, **kw)
  
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 10 for calling the DataFrameReplace obj's underlying member method code with example usage: obj._build_result_chunk(cls, op, in_chunks, with_fill, stage) and returns: new_op