code: def __init__(self) -> None:
      self.all_networks: List[Dict] = []
      try:
          response = requests.get(NETWORK_REGISTRY_URL)  # nosec
          network_json = response.json()
          self.all_networks = network_json["2.0.0"]["gateways"]
      except Exception as e:
          warning(
              f"Failed to get Network Registry, go checkout: {NETWORK_REGISTRY_REPO}. {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 1 to create a new NetworkRegistry object  with example: obj = NetworkRegistry()