Given a list `a`, I'm looking for a way to programmatically find out if a list element is defined inline, i.e.,

```
a = [123]

```

or by reference, i.e.,

```
number = 123
a = [number]

```

and if the latter, what the variable name is.

Any hints?