code: def gaussian_fill_w_gain(tensor, gain, dim_in, min_std=0.0) -> None:
      """Gaussian initialization with gain."""
      init.normal_(
          tensor, mean=0, std=max(gain * math.sqrt(1 / dim_in), min_std)
      )
  
imports: import logging
  import math
  from typing import List, Optional
  import torch
  import torch.nn
  import torch.nn.init
  from reagent.core import types
  from reagent.models.base import ModelBase
  from reagent.models.residual_wrapper import ResidualWrapper
label_desc: Use image node_id 1 for calling a global function with example usage: gaussian_fill_w_gain(tensor, gain, dim_in, min_std) without return types