async function getNodes() {
  const nodeDetails = this.commissioningController.getCommissionedNodesDetails();
  const filteredNodeDetails = nodeDetails.filter((nodeDetail) => {
    if (!nodeDetail.deviceData) {
      logger.warn(`Matter: Node ${nodeDetail.nodeId} has no device data`);
      return false;
    }
    return true;
  });
  return Promise.mapSeries(filteredNodeDetails, async (nodeDetail) => {
    const node = await this.commissioningController.getNode(nodeDetail.nodeId);
    const devices = node.getDevices();
    return {
      node_id: nodeDetail.nodeId.toString(),
      is_connected: node.isConnected,
      devices: devices.map((device) => {
        return convertDevice(device);
      }),
      node_information: {
        vendor_name: nodeDetail.deviceData.basicInformation.vendorName,
        product_name: nodeDetail.deviceData.basicInformation.productName,
        product_id: nodeDetail.deviceData.basicInformation.productId,
        product_label: nodeDetail.deviceData.basicInformation.productLabel,
        vendor_id: nodeDetail.deviceData.basicInformation.vendorId,
      },
    };
  });
}
@description Get the nodes.
@returns {Promise<Array>} The nodes.
@example
const nodes = await matterHandler.getNodes();