class_docstr: Parallel WaveGAN Generator module.
code: def _get_receptive_field_size(
      layers, stacks, kernel_size, dilation=lambda x: 2**x
  ):
      assert layers % stacks == 0
      layers_per_cycle = layers // stacks
      dilations = [
          dilation(i % layers_per_cycle) for i in range(layers)
      ]
      return (kernel_size - 1) * sum(dilations) + 1
  
imports: import logging
  import math
  from typing import Any, Dict, Optional
  import numpy
  import torch
  from espnet2.gan_tts.parallel_wavegan import upsample
  from espnet2.gan_tts.wavenet.residual_block import Conv1d, Conv1d1x1, ResidualBlock
label_desc: Use image node_id 5 for calling the ParallelWaveGANGenerator obj's underlying member method code with example usage: obj._get_receptive_field_size(layers, stacks, kernel_size, dilation) and returns: unknown