def store_attr(self, nms):
    "Store params named in comma-separated `nms` from calling context into attrs in `self`"
    mod = inspect.currentframe().f_back.f_locals
    for n in re.split(", *", nms):
        setattr(self, n, mod[n])
Store params named in comma-separated `nms` from calling context into attrs in `self`
analyze/convnexts4nd/src/models/baselines/nonaka/xresnet.py