Return a rank if it is a tensor, else return None.
(tensor)
source not stored for this graph (policy: none)
nothing calls this directly
no test coverage detected