code: def collect_cmd(self, args, ret):
          
          from dvc.command.daemon import CmdDaemonAnalytics
  
          assert isinstance(ret, int) or ret is None
  
          if ret is not None:
              self.info[self.PARAM_CMD_RETURN_CODE] = ret
  
          if args is not None and hasattr(args, "func"):
              assert args.func != CmdDaemonAnalytics
              self.info[self.PARAM_CMD_CLASS] = args.func.__name__
docs: Collect analytics info from a CLI command.