code: def set_command(name, add_cli):
      """A decorator factory to set CLI info."""
  
      def decorator(func):
          if hasattr(func, "__cli__"):
              raise Exception(f"already set")
          func.__cli__ = (name, add_cli)
          return func
  
      return decorator
  
imports: import argparse
  import contextlib
  import logging
  import os
  import os.path
  import shutil
  import sys
  from .None import fsutil, strutil, iterutil, logging
label_desc: Use image node_id 24 for calling a global function with example usage: set_command(name, add_cli) and returns: decorator, func