code: def extract_all_api_info_for_service(service, path_prefix):
      """Return a dictionary mapping each API method to a list of tuples [(path, HTTP method)]"""
      service_methods = service.DESCRIPTOR.methods
      res = {}
      for service_method in service_methods:
          endpoints = (
              service_method.GetOptions()
              .Extensions[databricks_pb2.rpc]
              .endpoints
          )
          res[service().GetRequestClass(service_method)] = [
              (_get_path(path_prefix, endpoint.path), endpoint.method)
              for endpoint in endpoints
          ]
      return res
  
imports: import base64
  import json
  import requests
  from mlflow.environment_variables import MLFLOW_HTTP_REQUEST_BACKOFF_FACTOR, MLFLOW_HTTP_REQUEST_BACKOFF_JITTER, MLFLOW_HTTP_REQUEST_MAX_RETRIES, MLFLOW_HTTP_REQUEST_TIMEOUT
  from mlflow.exceptions import InvalidUrlException, MlflowException, RestException, get_error_code
  from mlflow.protos import databricks_pb2
  from mlflow.protos.databricks_pb2 import ENDPOINT_NOT_FOUND, INVALID_PARAMETER_VALUE, ErrorCode
  from mlflow.utils.proto_json_utils import parse_dict
  from mlflow.utils.request_utils import _TRANSIENT_FAILURE_RESPONSE_CODES, _get_http_response_with_retries, augmented_raise_for_status, cloud_storage_http_request
  from mlflow.utils.string_utils import strip_suffix
label_desc: Use image node_id 7 for calling a global function with example usage: extract_all_api_info_for_service(service, path_prefix) and returns: res