code: def _duplicated(cls, inp, op, subset=None, keep=None):
      if keep is None:
          keep = op.keep
      if inp.ndim == 2:
          if subset is None:
              subset = op.subset
          return inp.duplicated(subset=subset, keep=keep)
      else:
          return inp.duplicated(keep=keep)
  
imports: import numpy
  from ...None import opcodes
  from ...core import OutputType
  from ...core.operand import OperandStage
  from ..utils import gen_unknown_index_value, hash_dataframe_on
  from ._duplicate import DuplicateOperand, validate_subset
label_desc: Use image node_id 10 for calling the DataFrameDuplicated obj's underlying member method code with example usage: obj._duplicated(cls, inp, op, subset, keep) and returns: inp, inp