def V1Pod(
    name: Optional[str] = None,
    namespace: Optional[str] = None,
    node_name: Optional[str] = None,
    labels: Optional[Labels] = None) -> client.V1Pod:
  """Make Kubernetes API Pod response, see V1Pod.

  https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Pod.md
  """
  return client.V1Pod(
      metadata=V1ObjectMeta(name=name, namespace=namespace, labels=labels),
      spec=client.V1PodSpec(node_name=node_name, containers=[]))
Make Kubernetes API Pod response, see V1Pod.

https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1Pod.md
tests/providers/kubernetes/k8s_mocks.py