  def ListNodes(self) -> List[base.K8sNode]:
    """Lists the nodes of this cluster.

    Returns:
      List[base.K8sNode]: The list of nodes in this cluster.
    """
    api = self._Api(client.CoreV1Api)

    # Collect pods
    nodes = api.list_node()

    # Convert to node objects
    return [
        base.K8sNode(self._api_client, node.metadata.name)
        for node in nodes.items
    ]
Lists the nodes of this cluster.

Returns:
List[base.K8sNode]: The list of nodes in this cluster.
libcloudforensics/providers/kubernetes/cluster.py