code: def __init__(self, inplanes, planes, downsample_scale=8):
      super(TemporalModulation, self).__init__()
  
      self.conv = nn.Conv3d(
          inplanes,
          planes,
          (3, 1, 1),
          (1, 1, 1),
          (1, 0, 0),
          bias=False,
          groups=32,
      )
      self.pool = nn.MaxPool3d(
          (downsample_scale, 1, 1),
          (downsample_scale, 1, 1),
          (0, 0, 0),
          ceil_mode=True,
      )
  
imports: import numpy
  import torch
  import torch.nn
  import torch.utils.checkpoint
  import torch.nn.functional
label_desc: Use image node_id 1 to create a new TemporalModulation object from inherited base classes: nn with example: obj = TemporalModulation(inplanes, planes, downsample_scale)