code: def _update_params(params, obj, mapper, axis, level):
      if obj.ndim == 2:
          test_obj = build_df(obj)
      else:
          test_obj = build_series(obj)
  
      if level is None:
          test_obj = test_obj.rename_axis(mapper, axis=axis)
      else:
          test_obj.axes[axis].set_names(
              mapper, level=level, inplace=True
          )
  
      if axis == 0:
          params["index_value"] = parse_index(
              test_obj.index, store_data=False
          )
      else:
          params["dtypes"] = test_obj.dtypes
          params["columns_value"] = parse_index(
              test_obj.columns, store_data=True
          )
  
imports: from ...None import opcodes
  from ...core import OutputType
  from ...serialization.serializables import AnyField, BoolField
  from ..core import DATAFRAME_TYPE
  from ..operands import DataFrameOperand, DataFrameOperandMixin
  from ..utils import validate_axis, parse_index, build_df, build_series
label_desc: Use image node_id 6 for calling the DataFrameRenameAxis obj's underlying member method code with example usage: obj._update_params(params, obj, mapper, axis, level) without return types