code: def resolve_se_args(kwargs, in_chs, act_layer=None):
      se_kwargs = kwargs.copy() if kwargs is not None else {}
      # fill in args that aren't specified with the defaults
      for k, v in _SE_ARGS_DEFAULT.items():
          se_kwargs.setdefault(k, v)
      # some models, like MobilNetV3, calculate SE reduction chs from the containing block's mid_ch instead of in_ch
      if not se_kwargs.pop("reduce_mid"):
          se_kwargs["reduced_base_chs"] = in_chs
      # act_layer override, if it remains None, the containing block's act_layer will be used
      if se_kwargs["act_layer"] is None:
          assert act_layer is not None
          se_kwargs["act_layer"] = act_layer
      return se_kwargs
  
imports: import re
  from copy import deepcopy
  from .conv2d_layers import *
  from geffnet.activations import *
label_desc: Use image node_id 3 for calling a global function with example usage: resolve_se_args(kwargs, in_chs, act_layer) and returns: se_kwargs