code: def __init__(
      self,
      in_channels: int,
      num_classes: Optional[int] = None,
      **kwargs: Any,
  ):
      super().__init__()
      self.in_channels = in_channels
      self.num_classes = num_classes
  
imports: import torch
  import torch.nn
  from typing import Any
  from typing import Dict
  from typing import List
  from typing import Type
  from typing import Optional
  from cftool.misc import WithRegister
  from ....losses.gan import DiscriminatorOutput
  from ....modules.blocks import get_conv_blocks
  from ....modules.blocks import Conv2d
label_desc: Use image node_id 1 to create a new DiscriminatorBase object from inherited base classes: nn, WithRegister with example: obj = DiscriminatorBase(in_channels, num_classes)