Internal implementation for the v1/v2 ones_like API calls.
(tensor, dtype, name, optimize=True)
source not stored for this graph (policy: none)
no test coverage detected