def METHOD_NAME(code: str, **kwds: object) -> str:
    """
    Generate ``code`` with ``kwds`` interpolated.
    Obey `indent`, and strip `EATSPACE`.
    """
    raw = code % kwds
    pfx = str(indent)
    if pfx:
        raw = re.sub(r'^(?!(#|$))', pfx, raw, flags=re.MULTILINE)
    return re.sub(re.escape(EATSPACE) + r' *', '', raw)