code: def __init__(self, input_dim, k):
      super().__init__()
      self.register_parameter(
          "weight", nn.Parameter(torch.rand(k, input_dim))
      )
      self.smax = partial(entmax15, dim=-1)
  
file_path: pytorch_tabular/src/pytorch_tabular/models/danet/arch_blocks.py
imports: from functools import partial
  import numpy
  import torch
  import torch.nn
  import torch.nn.functional
  from pytorch_tabular.models.common.layers.activations import entmax15
  from pytorch_tabular.models.common.layers.batch_norm import GBN
label_desc: Use image node_id 1 to create a new LearnableLocality object from inherited base classes: nn with example: obj = LearnableLocality(input_dim, k)