code: def test_read_zt_byte_strings():
      # sample binary block
      binary = b"test.fmr\x00test.prt\x00something"
      with InTemporaryDirectory():
          # create a tempfile
          path = "test.bin"
          fwrite = open(path, "wb")
          # write the binary block to it
          fwrite.write(binary)
          fwrite.close()
          # open it again
          fread = open(path, "rb")
          # test readout of one string
          assert read_zt_byte_strings(fread) == [b"test.fmr"]
          # test new file position
          assert fread.tell() == 9
          # manually rewind
          fread.seek(0)
          # test readout of two strings
          assert read_zt_byte_strings(fread, 2) == [
              b"test.fmr",
              b"test.prt",
          ]
          assert fread.tell() == 18
          # test readout of more strings than present
          fread.seek(0)
          with pytest.raises(ValueError):
              read_zt_byte_strings(fread, 3)
          fread.seek(9)
          with pytest.raises(ValueError):
              read_zt_byte_strings(fread, 2)
          # Try with a small bufsize
          fread.seek(0)
          assert read_zt_byte_strings(fread, 2, 4) == [
              b"test.fmr",
              b"test.prt",
          ]
          fread.close()
  
imports: import pytest
  from ..fileutils import read_zt_byte_strings
  from ..tmpdirs import InTemporaryDirectory
label_desc: Use image node_id 1 for calling a global function with example usage: test_read_zt_byte_strings() without return types