code: def get_model_dir(name, root="~/.insightface"):
      root = os.path.expanduser(root)
      model_dir = osp.join(root, "models", name)
      return model_dir
  
file_path: insightface/python-package/insightface/utils/filesystem.py
imports: import os
  import os.path
  import errno
label_desc: Use image node_id 1 for calling a global function with example usage: get_model_dir(name, root) and returns: model_dir