getAllNetworks = async networksDirectoryId => {
    const networksDirectory = await provide(networksDirectoryId, 'directory');
    const networkIds = await networksDirectory.listIdentifiers();
    const networks = await Promise.all(
      networkIds.map(id => provide(id, 'network')),
    );
    return networks;
  }
@param {string} networksDirectoryId
@returns {Promise<EndoNetwork[]>}