def V1NodeList(amount: int) -> client.V1NodeList:
  """Make Kubernetes API Node list response, see V1NodeList.

  https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/V1NodeList.md
  """
  items = [V1Node('node-{0:d}'.format(i)) for i in range(amount)]
  return client.V1NodeList(items=items)
Make Kubernetes API Node list response, see V1NodeList.

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