code: def create_example(_args):
      example_path = Path(nni_assets.__path__[0], "hello_hpo")
      try:
          shutil.copytree(example_path, "nni_hello_hpo")
      except PermissionError:
          print(
              Fore.RED
              + "Permission denied. Please run the command in a writable directory."
              + Fore.RESET
          )
          exit(1)
      except FileExistsError:
          print(
              'File exists. Please run "python nni_hello_hpo/main.py" to start the example.'
          )
          exit(1)
      print(
          'A hyperparameter optimization example has been created at "nni_hello_hpo" directory.'
      )
      print('Please run "python nni_hello_hpo/main.py" to try it out.')
  
imports: from pathlib import Path
  import shutil
  from colorama import Fore
  import nni_assets
label_desc: Use image node_id 1 for calling a global function with example usage: create_example(_args) without return types