code: def standard_mock_instances(self, instance_to_ip_map=None):
      if instance_to_ip_map is None:
          instance_to_ip_map = {"gce-instance-1": "10.123.45.67"}
  
      mock_get_request = mock.MagicMock()
      mock_get_request.execute.return_value = {
          "networkInterfaces": [{"networkIP": "10.123.45.67"}]
      }
  
      def get_side_effect(project, zone, instance):
          del project, zone  # Unused
  
          if instance in instance_to_ip_map:
              mock_get_request = mock.MagicMock()
              mock_get_request.execute.return_value = {
                  "networkInterfaces": [
                      {"networkIP": instance_to_ip_map[instance]}
                  ]
              }
              return mock_get_request
          else:
              raise RuntimeError("Instance %s not found!" % instance)
  
      service_attrs = {
          "get.side_effect": get_side_effect,
      }
      mock_instances = mock.MagicMock(**service_attrs)
      return mock_instances
  
file_path: tensorflow-upstream/tensorflow/python/distribute/cluster_resolver/gce_cluster_resolver_test.py
imports: from tensorflow.python.distribute.cluster_resolver.cluster_resolver import UnionClusterResolver
  from tensorflow.python.distribute.cluster_resolver.gce_cluster_resolver import GCEClusterResolver
  from tensorflow.python.platform import test
  from tensorflow.python.training import server_lib
label_desc: Use image node_id 3 for calling the GCEClusterResolverTest obj's underlying member method code with example usage: obj.standard_mock_instances(instance_to_ip_map) and returns: mock_instances, mock_get_request