function visualizeModelLayers(tab, layers, layerNames) {
  layers.forEach((layer, i) => {
    const surface = tfvis.visor().surface({tab, name: layerNames[i]});
    tfvis.show.layer(surface, layer);
  });
}
Visualize layers of a model.

@param {string} tab Name of the tfjs-vis visor tab on which the visualization
  will be made.
@param {tf.layers.Layer[]} layers An array of layers to visualize.
@param {string[]} layerNames Names of the layers, to be used to label the
  tfvis surfaces. Must have the same length as `layers`.