def get_node_running_pods_table_block_or_none(
    node: Node, table_name: Optional[str] = "Pods running on the node"
) -> Optional[TableBlock]:
    """
    Enrich the finding with the node resources available for allocation.

    Can help troubleshooting node issues.
    """
    try:
        pod_list = PodList.listPodForAllNamespaces(field_selector=f"spec.nodeName={node.metadata.name}").obj
    except Exception as e:
        logging.error(f"Failed to list pods for node {node.metadata.name}: {e}")
        return None

    effected_pods_rows = [
        [pod.metadata.namespace, pod.metadata.name, pod.is_pod_in_ready_condition()] for pod in pod_list.items
    ]

    return TableBlock(effected_pods_rows, ["namespace", "name", "ready"], table_name=table_name)

    Enrich the finding with the node resources available for allocation.

    Can help troubleshooting node issues.
    
src/robusta/core/playbooks/node_enrichment_utils.py