def V1NetworkPolicy(name: str, namespace: str) -> client.V1NetworkPolicy:
  """Make Kubernetes API NetworkPolicy response, see V1NetworkPolicy.

  https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1NetworkPolicy.md
  """
  return client.V1NetworkPolicy(
      metadata=V1ObjectMeta(name=name, namespace=namespace))
Make Kubernetes API NetworkPolicy response, see V1NetworkPolicy.

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