code: def extract_data_from_inspect(network_name, network_data):
      
      a4 = None
      if network_name == "host":
          a4 = "127.0.0.1"
      n = {}
      a4 = graceful_chain_get(network_data, "IPAddress") or a4
      if a4:
          n["ip_address4"] = a4
      a6 = graceful_chain_get(network_data, "GlobalIPv6Address")
      if a6:
          n["ip_address4"] = a6
      return n
docs: :param network_name: str
      :param network_data: dict
      :return: dict:
          {
              "ip_address4": "12.34.56.78"
              "ip_address6": "ff:fa:..."
          }