code: def set_home_dir(home_dir: str) -> None:
      os.environ["HOME"] = home_dir
      os.chdir(home_dir)
  
file_path: gradio/js/wasm/src/webworker/py/script_runner.py
imports: import ast
  import os
  import sys
  import tokenize
  import types
  from inspect import CO_COROUTINE
  from gradio.wasm_utils import app_id_context
label_desc: Use image node_id 2 for calling a global function with example usage: set_home_dir(home_dir) without return types