code: def mask_password_info(ssh_tunnel: dict[str, Any]) -> dict[str, Any]:
      if ssh_tunnel.pop("password", None) is not None:
          ssh_tunnel["password"] = PASSWORD_MASK
      if ssh_tunnel.pop("private_key", None) is not None:
          ssh_tunnel["private_key"] = PASSWORD_MASK
      if ssh_tunnel.pop("private_key_password", None) is not None:
          ssh_tunnel["private_key_password"] = PASSWORD_MASK
      return ssh_tunnel
  
imports: from typing import Any
  from superset.constants import PASSWORD_MASK
  from superset.databases.ssh_tunnel.models import SSHTunnel
label_desc: Use image node_id 1 for calling a global function with example usage: mask_password_info(ssh_tunnel) and returns: ssh_tunnel