extract out tests for //c10/util:base (#71908)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71908
This reduces the dependencies of these tests and also the distance
from each test to its primary input.
ghstack-source-id: 150235100
Test Plan: This ought to be a no-op, rely on CI to validate.
Reviewed By: malfet
Differential Revision: D33815404
fbshipit-source-id: 8f69ebabe5f7bacba056b0f31e55161fc431a45e
(cherry picked from commit 3906723bd5b9e9d1eb6f8e37b4173ad695658cd9)