When metaclasses are generated by factory functions that dynamically determine their names or even return different metaclass types based on runtime conditions, AI's ability to infer the correct attribute lookup path is severely hampered, often leading to `AttributeError`.