code: def test_shim_can_roundtrip_with_path_subclass(pathy_fixture):
      shim_path = pathy_fixture / "cool_shim.data"
      shim = MockShim([1, 2, 3])
      shim.to_disk(shim_path)
      copy_shim = shim.from_disk(shim_path)
      assert copy_shim.to_bytes() == shim.to_bytes()
  
file_path: thinc/thinc/tests/layers/test_shim.py
imports: from typing import List
  from thinc.shims.shim import Shim
  from ..util import make_tempdir
label_desc: Use image node_id 2 for calling a global function with example usage: test_shim_can_roundtrip_with_path_subclass(pathy_fixture) without return types