code: def standard_mock_service_client(
      self, mock_instance_groups=None, mock_instances=None
  ):
      if mock_instance_groups is None:
          mock_instance_groups = self.standard_mock_instance_groups()
      if mock_instances is None:
          mock_instances = self.standard_mock_instances()
  
      mock_client = mock.MagicMock()
      mock_client.instanceGroups.return_value = mock_instance_groups
      mock_client.instances.return_value = mock_instances
      return mock_client
  
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 4 for calling the GCEClusterResolverTest obj's underlying member method code with example usage: obj.standard_mock_service_client(mock_instance_groups, mock_instances) and returns: mock_client