code: def _num_filters_fn(block_id, **kwargs):
      """Computes number of filters of block `block_id`."""
      return networks.num_filters(
          block_id,
          kwargs["fmap_base"],
          kwargs["fmap_decay"],
          kwargs["fmap_max"],
      )
  
file_path: magenta/magenta/models/gansynth/lib/network_functions.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from magenta.models.gansynth.lib import data_normalizer
  from magenta.models.gansynth.lib import layers
  from magenta.models.gansynth.lib import networks
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling a global function with example usage: _num_filters_fn(block_id) and returns: networks