Platforms: linux

This test was disabled because it is failing on master ([recent examples](http://torch-ci.com/failure/test_torch.py%3A%3ATestTorch%3A%3Atest_equal)).

The cause seems to point to https://github.com/pytorch/pytorch/pull/100024 (or D45282119 as it was landed internally)

cc @mruberry @houseroad @ezyang 
s0 = torch.TypedStorage([1, 2, 3, 4], d='meta', d=d)
        with self.assertRaisesRegex(NotImplementedError, r'Cannot copy out'):
            s0.cpu()
        with self.assertRaisesRegex(RuntimeError, r'only available on CPU'):
            s0._share_fd_cpu_()
        with self.assertRaisesRegex(RuntimeError, r'only available on CPU'):
            s0._share_filename_cpu_()
        if torch.cuda.is_available():
            with self.assertRaisesRegex(NotImplementedError, r'Cannot copy out'):
                s0.cuda()
            with self.assertRaisesRegex(RuntimeError, r'only available on CUDA'):
                s0._share_cuda_()
            with self.assertRaisesRegex(NotImplementedError, r'Cannot copy out'):
                s0.pin_memory()
        with self.assertRaisesRegex(RuntimeError, r'got unexpected d '):
            s0.resize_(10)
        with self.assertRaisesRegex(RuntimeError, r'only available on CPU'):
            s0.share_memory_()
        with self.assertRaisesRegex(NotImplementedError, r'Not available'):
            s0.tolist()
        with tempfile.NamedTemporaryFile() as f:
            with self.assertRaisesRegex(NotImplementedError, r'Cannot copy out'):
                s0._write_file(f, True, True, s0.element_size())
        for d in ['cpu', 'cuda'] if torch.cuda.is_available() else ['cpu']:
            s1 = torch.TypedStorage([1, 2, 3, 4], d=d, d=d)
            with self.assertRaisesRegex(NotImplementedError, r'Cannot copy out'):
                s1.copy_(s0)
    @onlyCUDA
    def test_module_share_memory(self):