def METHOD_NAME(self) -> None:
    module = astroid.parse(
        """
    import attr
    from attr import attrs, attrib, field
    @attr.s
    class Foo:
        d = attr.ib(attr.Factory(dict))
    f = Foo()
    f.d['answer'] = 42
    @attr.s(slots=True)
    class Bar:
        d = attr.ib(attr.Factory(dict))
    g = Bar()
    g.d['answer'] = 42
    @attrs
    class Bah:
        d = attrib(attr.Factory(dict))
    h = Bah()
    h.d['answer'] = 42
    @attr.attrs
    class Bai:
        d = attr.attrib(attr.Factory(dict))
    i = Bai()
    i.d['answer'] = 42
    @attr.define
    class Spam:
        d = field(default=attr.Factory(dict))
    j = Spam(d=1)
    j.d['answer'] = 42
    @attr.mutable
    class Eggs:
        d = attr.field(default=attr.Factory(dict))
    k = Eggs(d=1)
    k.d['answer'] = 42
    @attr.frozen
    class Eggs:
        d = attr.field(default=attr.Factory(dict))
    l = Eggs(d=1)
    l.d['answer'] = 42
    @attr.attrs(auto_attribs=True)
    class Eggs:
        d: int = attr.Factory(lambda: 3)
    m = Eggs(d=1)
    """
    )
    for name in ("f", "g", "h", "i", "j", "k", "l", "m"):
        should_be_unknown = next(module.getattr(name)[0].infer()).getattr("d")[0]
        self.assertIsInstance(should_be_unknown, astroid.Unknown)