code: def __init__(self, sample: bool = True):
      super().__init__()
      self.sample = sample
  
file_path: generative-models/sgm/modules/autoencoding/regularizers/__init__.py
imports: from abc import abstractmethod
  from typing import Any, Tuple
  import torch
  import torch.nn
  import torch.nn.functional
  from ....modules.distributions.distributions import DiagonalGaussianDistribution
  from .base import AbstractRegularizer
label_desc: Use image node_id 1 to create a new DiagonalGaussianRegularizer object from inherited base classes: AbstractRegularizer with example: obj = DiagonalGaussianRegularizer(sample)