code: def compute_info(cls, val):
      v = val.rstrip("/")
      try:
          resp = requests.get(
              os.path.join(v, "ping"), headers=SERVICE_HEADERS.copy()
          )
          resp.raise_for_status()
      except:  # noqa E722
          raise ValueError("Metaflow service [%s] unreachable." % v)
      return v
  
imports: import os
  import random
  import requests
  import time
  from metaflow.exception import MetaflowException, MetaflowTaggingError, MetaflowInternalError
  from metaflow.metaflow_config import SERVICE_RETRY_COUNT, SERVICE_HEADERS, SERVICE_URL
  from metaflow.metadata import MetadataProvider
  from metaflow.metadata.heartbeat import HB_URL_KEY
  from metaflow.sidecar import Message, MessageTypes, Sidecar
  from metaflow.util import version_parse
label_desc: Use image node_id 2 for calling the ServiceMetadataProvider obj's underlying member method code with example usage: obj.compute_info(cls, val) and returns: v