AutoGraph is built to convert Python code into TensorFlow graph operations, which primarily work with tensors. It struggles with arbitrary Python objects and data structures like generic lists or dictionaries when their usage isn't directly compatible with TensorFlow's strongly typed intermediate representation, sometimes requiring explicit user annotations.