class_docstr: Mixin containing operation common for both backend and leaderboard api clients
code: def _verify_host_resolution(self, api_url, app_url):
      host = urllib.parse.urlparse(api_url).netloc.split(":")[0]
      try:
          socket.gethostbyname(host)
      except socket.gaierror:
          if self.credentials.api_url_opt is None:
              raise DeprecatedApiToken(
                  urllib.parse.urlparse(app_url).netloc
              )
          else:
              raise CannotResolveHostname(host)
  
file_path: neptune-client/src/neptune/legacy/internal/api_clients/hosted_api_clients/mixins.py
imports: import logging
  import socket
  import sys
  import click
  from bravado.client import SwaggerClient
  from bravado_core.formatter import SwaggerFormat
  from packaging import version
  from six.moves import urllib
  from neptune.legacy.exceptions import CannotResolveHostname, DeprecatedApiToken, UnsupportedClientVersion
  from neptune.legacy.internal.api_clients.client_config import ClientConfig, MultipartConfig
  from neptune.legacy.internal.api_clients.hosted_api_clients.utils import legacy_with_api_exceptions_handler
label_desc: Use image node_id 4 for calling the HostedNeptuneMixin obj's underlying member method code with example usage: obj._verify_host_resolution(api_url, app_url) without return types