code: def login_azure() -> bool:
      cmd = "az login"
      try:
          subprocess.check_call(
              cmd, shell=True, stdout=subprocess.DEVNULL
          )  # nosec
          return True
      except Exception:  # nosec
          pass
      return False
  
file_path: PySyft/packages/hagrid/hagrid/azure.py
imports: import json
  import os
  import subprocess
  from typing import Dict
  from typing import Optional
  from azure.identity import ClientSecretCredential
  from azure.mgmt.resource import ResourceManagementClient
  from .file import user_hagrid_profile
label_desc: Use image node_id 2 for calling a global function with example usage: login_azure() and returns: False, True