code: def test_server_is_responding_with_unexpected_data():
      def empty_metadata_request(method, url, **kwargs):
          if method == "GET" and url.find("/3/Metadata/schemas") != -1:
              response = requests.Response()
              response.status_code = 200
              # Return empty response with success status code simulate unexpected response body, in this case empty body
              return response
  
      try:
          requests.request_orig = requests.request
          requests.request = empty_metadata_request
  
          # try to connect to the cloud with mock response
          h2o.connect()
          assert False, "Connection should fail"
      except H2OConnectionError as e:
          print(str(e))
          assert (
              "Unexpected API output. Please verify server url and port."
              in str(e)
          )
      finally:
          requests.request = requests.request_orig
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  import requests
  from h2o.exceptions import H2OConnectionError
label_desc: Use image node_id 1 for calling a global function with example usage: test_server_is_responding_with_unexpected_data() and returns: response