code: def test_simple_strided_slice_identity_removal():
      """Check identity is removed when there is a strided slice
      in the graph and a compute operation follows."""
  
      def get_graph(get_expected=False):
          dtype = "int8"
  
          x = relay.var("x", shape=(1, 2, 2, 4), dtype=dtype)
          x = infra.make_ethosu_pooling(
              x, "MAX", (1, 1), 4, dtype, (1, 1), (0, 0)
          )
          x = relay.strided_slice(
              x, begin=[0, 0, 0, 0], end=[1, 2, 2, 2]
          )
          if not get_expected:
              x = infra.make_ethosu_identity(x)
          x = infra.make_ethosu_pooling(
              x, "MAX", (1, 1), 2, dtype, (1, 1), (0, 0)
          )
          return relay.Function(relay.analysis.free_vars(x), x)
  
      actual = _optimize(get_graph())
      expected = _optimize(get_graph(get_expected=True), optimize=False)
      _assert_structural_equal(actual, expected)
  
imports: import pytest
  import tensorflow
  import tvm
  from tvm import relay
  from tvm.relay.op.contrib.ethosu import partition_for_ethosu
  from tvm.relay.backend.contrib.ethosu.codegen import relay_to_tir
  from tvm.relay.backend.contrib.ethosu.codegen import IdentityOptimizer
  from .None import infra
label_desc: Use image node_id 4 for calling a global function with example usage: test_simple_strided_slice_identity_removal() and returns: relay