code: def get_link(self, layer, base_ch, growth_rate, grmul):
      if layer == 0:
          return base_ch, 0, []
      out_channels = growth_rate
  
      link = []
      for i in range(10):
          dv = 2**i
          if layer % dv == 0:
              k = layer - dv
              link.append(k)
              if i > 0:
                  out_channels *= grmul
  
      out_channels = int(int(out_channels + 1) / 2) * 2
      in_channels = 0
  
      for i in link:
          ch, _, _ = self.get_link(i, base_ch, growth_rate, grmul)
          in_channels += ch
  
      return out_channels, in_channels, link
  
file_path: PaddleDetection/ppdet/modeling/backbones/hardnet.py
imports: import paddle
  import paddle.nn
  from ppdet.core.workspace import register
  from ..shape_spec import ShapeSpec
label_desc: Use image node_id 3 for calling the HarDBlock obj's underlying member method code with example usage: obj.get_link(layer, base_ch, growth_rate, grmul) and returns: out_channels,  in_channels,  link, base_ch,  int,  list