code: def _get_mock_pod_item(name, phase, host_ip):
      mock_status = mock.Mock()
      mock_status.configure_mock(phase=phase, host_ip=host_ip)
  
      mock_metadata = mock.Mock()
      mock_metadata.configure_mock(name=name)
  
      mock_item = mock.Mock()
      mock_item.configure_mock(
          status=mock_status, metadata=mock_metadata
      )
      return mock_item
  
file_path: tensorflow/tensorflow/python/distribute/cluster_resolver/kubernetes_cluster_resolver_test.py
imports: from tensorflow.python.distribute.cluster_resolver.kubernetes_cluster_resolver import KubernetesClusterResolver
  from tensorflow.python.platform import test
  from tensorflow.python.training import server_lib
label_desc: Use image node_id 2 for calling a global function with example usage: _get_mock_pod_item(name, phase, host_ip) and returns: mock_item