code: def add_arguments_rnn_attention_common(group):
      """Define common arguments for RNN attention."""
      group.add_argument(
          "--atype",
          default="dot",
          type=str,
          choices=[
              "noatt",
              "dot",
              "add",
              "location",
              "coverage",
              "coverage_location",
              "location2d",
              "location_recurrent",
              "multi_head_dot",
              "multi_head_add",
              "multi_head_loc",
              "multi_head_multi_res_loc",
          ],
          help="Type of attention architecture",
      )
      group.add_argument(
          "--adim",
          default=320,
          type=int,
          help="Number of attention transformation dimensions",
      )
      group.add_argument(
          "--awin",
          default=5,
          type=int,
          help="Window size for location2d attention",
      )
      group.add_argument(
          "--aheads",
          default=4,
          type=int,
          help="Number of heads for multi head attention",
      )
      group.add_argument(
          "--aconv-chans",
          default=-1,
          type=int,
          help="Number of attention convolution channels \
                         (negative value indicates no location-aware attention)",
      )
      group.add_argument(
          "--aconv-filts",
          default=100,
          type=int,
          help="Number of attention convolution filters \
                         (negative value indicates no location-aware attention)",
      )
      group.add_argument(
          "--dropout-rate",
          default=0.0,
          type=float,
          help="Dropout rate for the encoder",
      )
      return group
  
label_desc: Use image node_id 3 for calling a global function with example usage: add_arguments_rnn_attention_common(group) and returns: group