code: def test_workaround_non_contiguous(self):
      model = NonContiguousModel()
  
      with self.assertRaises(ValueError) as ctx:
          save_model(model, "tmp_c.safetensors", force_contiguous=False)
      self.assertIn(
          "use save_model(..., force_contiguous=True)",
          str(ctx.exception),
      )
      save_model(model, "tmp_c.safetensors", force_contiguous=True)
  
      model2 = NonContiguousModel()
      load_model(model2, "tmp_c.safetensors")
  
      state_dict = model.state_dict()
      for k, v in model2.state_dict().items():
          torch.testing.assert_close(v, state_dict[k])
  
imports: import copy
  import unittest
  import torch
  from safetensors import safe_open
  from safetensors.torch import _end_ptr, _find_shared_tensors, _is_complete, _remove_duplicate_names, load_model, save_file, save_model
label_desc: Use image node_id 10 for calling the TorchModelTestCase obj's underlying member method code with example usage: obj.test_workaround_non_contiguous() without return types