code: def test_get_external_ip_https_if_http_fails(self):
      with requests_mock.mock() as m:
          m.get(
              net_util._AWS_CHECK_IP,
              exc=requests.exceptions.ConnectTimeout,
          )
          m.get(net_util._AWS_CHECK_IP_HTTPS, text="5.6.7.8")
          self.assertEqual("5.6.7.8", net_util.get_external_ip())
          self.assertEqual(m.call_count, 2)
  
file_path: streamlit/lib/tests/streamlit/net_util_test.py
imports: import unittest
  import requests
  import requests_mock
  from streamlit import net_util
label_desc: Use image node_id 4 for calling the UtilTest obj's underlying member method code with example usage: obj.test_get_external_ip_https_if_http_fails() without return types