class_docstr: Test that the right resolvers are called depending on the load format.
class_docstr_tok: ["Test","that","the","right","resolvers","are","called","depending","on","the","load","format","."]
code: def _assert_resolver_is_called(self, http_resolver):
      module_url = "https://tfhub.dev/google/model/1"
      with mock.patch.object(
          http_resolver, "__call__", side_effect=ValueError
      ) as mocked_call:
          try:
              hub.load(module_url)
              self.fail(
                  "Failure expected since mock raises it as side effect."
              )
          except ValueError:
              pass
      mocked_call.assert_called_once_with(module_url)
  
imports: import os
  import re
  import socket
  import tempfile
  import threading
  import time
  import unittest
  from unittest import mock
  import uuid
  from absl import flags
  import tensorflow
  import tensorflow_hub
  from tensorflow_hub import compressed_module_resolver
  from tensorflow_hub import config
  from tensorflow_hub import registry
  from tensorflow_hub import resolver
  from tensorflow_hub import test_utils
  from tensorflow_hub import tf_utils
  from tensorflow_hub import uncompressed_module_resolver
label_desc: Use image node_id 1 for calling the LoadFormatResolverBehaviorTest obj's underlying member method code with example usage: obj._assert_resolver_is_called(http_resolver) without return types