def METHOD_NAME(func: Callable[..., Tuple[str]], classname: str, attr_name: str):
    """ 
    Registers a replacement sub-SDFG generator for object attributes.
    :param func: A function that receives an SDFG, SDFGState, and the original
                 function arguments, returning a tuple of array names to 
                 connect to the outputs.
    :param classname: Full name (pydoc-compliant, including package) of the 
                      object class.
    :param attr_name: Name of the attribute.
    """
    Replacements._attr_rep[(classname, attr_name)] = func
    return func