code: def dir_path(path_str):
      if os.path.isdir(path_str):
          return path_str
      elif (
          input(
              f"{path_str} does not exist, create directory? [y/n]"
          ).lower()
          == "y"
      ):
          os.makedirs(path_str)
          return path_str
      else:
          raise NotADirectoryError(path_str)
  
file_path: serve/examples/large_models/deepspeed_mii/Download_deepseed_mii_models.py
imports: import argparse
  import os
  from huggingface_hub import HfApi, snapshot_download
label_desc: Use image node_id 1 for calling a global function with example usage: dir_path(path_str) and returns: path_str, path_str