code: def make_metrics_api(client):
      
      generated = MetricsServiceV2Client(
          credentials=client._credentials, client_info=_CLIENT_INFO
      )
      return _MetricsAPI(generated, client)
docs: Create an instance of the Metrics API adapter.
  
      :type client: :class:`~google.cloud.logging.client.Client`
      :param client: The client that holds configuration details.
  
      :rtype: :class:`_MetricsAPI`
      :returns: A metrics API instance with the proper credentials.