code: def test_TFCloudHttpRequest_with_rejected_consent(
      self, mock_consent_status
  ):
      mock_consent_status.return_value = False
      http_request = google_api_client.TFCloudHttpRequest(
          googleapiclient_http.HttpMockSequence(
              [({"status": "200"}, "{}")]
          ),
          object(),
          "fake_uri",
      )
      self.assertIsInstance(
          http_request, googleapiclient_http.HttpRequest
      )
      self.assertIn("user-agent", http_request.headers)
      self.assertDictEqual(
          {"user-agent": f"tf-cloud/{version.__version__} ()"},
          http_request.headers,
      )
  
imports: import json
  import os
  from googleapiclient import discovery
  from googleapiclient import errors
  from googleapiclient import http
  import httplib2
  import mock
  import tensorflow
  from tensorflow_cloud import version
  from tensorflow_cloud.utils import google_api_client
label_desc: Use image node_id 21 for calling the GoogleApiClientTest obj's underlying member method code with example usage: obj.test_TFCloudHttpRequest_with_rejected_consent(mock_consent_status) without return types