code: def _run(self, func, name):
      ret = 0
      for target in self.args.targets:
          try:
              func(target)
          except DvcException:
              logger.exception("failed to %s '%s'", name, target)
              ret = 1
      return ret
  
file_path: dvc/dvc/commands/freeze.py
imports: from dvc.cli import completion, formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.exceptions import DvcException
  from dvc.log import logger
label_desc: Use image node_id 1 for calling the CmdFreezeBase obj's underlying member method code with example usage: obj._run(func, name) and returns: ret