code: def test_tflite_hard_swish(accel_type, ifm_shape):
      np.random.seed(0)
  
      @tf.function
      def hard_swish_func(x):
          op = tf.keras.layers.Lambda(
              lambda x: x
              * tf.keras.activations.relu(x + 3.0, max_value=6.0)
              / 6.0
          )(x)
          return op
  
      infra.compare_tvm_with_tflite(
          hard_swish_func, [ifm_shape], accel_type, ranges=[(-1, 1)]
      )
  
imports: import pytest
  import numpy
  import tflite.Model
  import tvm
  import tensorflow
  from tvm import relay
  from tvm.relay.backend.contrib.ethosu import util
  from tvm.relay.op.contrib.ethosu import partition_for_ethosu
  from tvm.testing.aot import generate_ref_data
  from .None import infra
label_desc: Use image node_id 31 for calling a global function with example usage: test_tflite_hard_swish(accel_type, ifm_shape) and returns: op