code: def run(self):
      from dvc.utils import humanize
  
      if not (self.args.experiment and self.args.name):
          raise InvalidArgumentError(
              "An experiment to rename and a new experiment name are required."
          )
      renamed = self.repo.experiments.rename(
          exp_name=self.args.experiment,
          new_name=self.args.name,
          git_remote=self.args.git_remote,
          force=self.args.force,
      )
      if renamed:
          ui.write(
              f"Renamed experiments: {humanize.join(map(repr, renamed))}"
          )
      else:
          ui.write("No experiments to rename.")
  
      return 0
  
file_path: dvc/dvc/commands/experiments/rename.py
imports: from dvc.cli import formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.exceptions import InvalidArgumentError
  from dvc.log import logger
  from dvc.ui import ui
label_desc: Use image node_id 1 for calling the CmdExperimentsRename obj's underlying member method code with example usage: obj.run() and returns: int