code: def run_hagrid(node: Dict) -> int:
      name = node["name"]
      node_type = node["node_type"]
      ip = node["ip"]
      branch = node["branch"]
      cmd = (
          f"hagrid launch {name} {node_type} to {ip} --username=azureuser --auth-type=key "
          f"--key-path={KEY} --repo=OpenMined/PySyft --branch={branch} --verbose"
      )
      watch_shell(cmd)
  
imports: import json
  import os
  import subprocess
  from typing import Any
  from typing import Dict
  from typing import Optional
  from typing import Tuple
  import git
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: run_hagrid(node) without return types