code: def create_client(enclave: Dict[str, Any]) -> Client:  # type: ignore
      # relative
      from ..client.client import connect
  
      try:
          port = int(enclave["port"])
          protocol = enclave["protocol"]
          host_or_ip = enclave["host_or_ip"]
          grid_url = GridURL(
              port=port, protocol=protocol, host_or_ip=host_or_ip
          )
          client = connect(url=str(grid_url))
          return client.guest()
      except Exception as e:
          error(f"Failed to login with: {enclave}. {e}")
          raise SyftException(f"Failed to login with: {enclave}. {e}")
  
imports: from __future__ import annotations
  from concurrent import futures
  from typing import Any
  from typing import Dict
  from typing import List
  from typing import Optional
  from typing import TYPE_CHECKING
  from typing import Tuple
  from typing import Union
  import pandas
  import requests
  from ..service.metadata.node_metadata import NodeMetadataJSON
  from ..service.network.network_service import NodePeer
  from ..service.response import SyftException
  from ..types.grid_url import GridURL
  from ..util.constants import DEFAULT_TIMEOUT
  from ..util.logger import error
  from ..util.logger import warning
  from .enclave_client import EnclaveClient
label_desc: Use image node_id 5 for calling the EnclaveRegistry obj's underlying member method code with example usage: obj.create_client(enclave) and returns: client