What do you mean “A2 does not have a shape”? That would be a problem, right? That must mean that somehow A2 is not the correct data type (a numpy array). That would be the first thing to investigate. What type is it:
print(f"type(A2) = {type(A2)}")
Next question: how did it get that way?
Also note that what you printed has only one set of square brackets. The “expected value” shown has two sets. That may seem trivial, but it’s not: it means that either the first variable is some other data type (e.g. a python list or tuple) or that it is a 1D numpy array. Whereas the expected value is a 2D array.
Here’s another recent thread which explains a bit about the significance of the brackets.