code: def test_io_tensor_slice(fixture_lookup, io_tensor_fixture):
      """test_io_tensor_slice"""
      args, func, expected, equal = fixture_lookup(io_tensor_fixture)
  
      io_tensor = func(args)
  
      # Test to_tensor
      entries = io_tensor.to_tensor()
      assert len(entries) == len(expected)
      assert equal(entries, expected)
  
      # Test __getitem__, use 7 to partition
      indices = list(range(0, len(expected), 7))
      for start, stop in list(
          zip(indices, indices[1:] + [len(expected)])
      ):
          assert equal(io_tensor[start:stop], expected[start:stop])
  
imports: import os
  import shutil
  import tempfile
  import numpy
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 21 for calling a global function with example usage: test_io_tensor_slice(fixture_lookup, io_tensor_fixture) without return types