code: def test_ExternalCOp_c_code_cache_version():
      """Make sure the C cache versions produced by `ExternalCOp` don't depend on `hash` seeding."""
  
      with tempfile.NamedTemporaryFile(dir=".", suffix=".py") as tmp:
          tmp.write(externalcop_test_code.encode())
          tmp.seek(0)
          # modname = os.path.splitext(tmp.name)[0]
          modname = tmp.name
          out_1, err1, returncode1 = get_hash(modname, seed=428)
          out_2, err2, returncode2 = get_hash(modname, seed=3849)
          assert returncode1 == 0
          assert returncode2 == 0
          assert err1 == err2
  
          hash_1, msg, _ = out_1.decode().split("\n")
          assert msg == "__success__"
          hash_2, msg, _ = out_2.decode().split("\n")
          assert msg == "__success__"
  
          assert hash_1 == hash_2
  
imports: import os
  import subprocess
  import sys
  import tempfile
  from pathlib import Path
  import numpy
  import pytest
  import pytensor
  from pytensor import scalar
  from pytensor.configdefaults import config
  from pytensor.graph.basic import Apply
  from pytensor.graph.utils import MethodNotDefined
  from pytensor.link.c.op import COp
label_desc: Use image node_id 2 for calling a global function with example usage: test_ExternalCOp_c_code_cache_version() without return types