class_docstr: Consists of tests testing functionality of creating lookup tables for integer operations.
class_docstr_tok: ["Consists","of","tests","testing","functionality","of","creating","lookup","tables","for","integer","operations","."]
code: def fake_identity_func_relay(
      self,
      floating_point_func: Callable[[np.ndarray], np.ndarray],
      input_arg=None,
      in_scale=relay.const(1.0, dtype="float32"),
      in_zero_point=relay.const(0, dtype="int32"),
      out_scale=relay.const(1.0, dtype="float32"),
      out_zero_point=relay.const(0, dtype="int32"),
      in_axis=-1,
      out_axis=-1,
      in_dtype="uint8",
      out_dtype="uint8",
  ):
      if input_arg is None:
          input_arg = relay.const(
              np.arange(0, 256, dtype="uint8").view(in_dtype)
          )
  
      return (
          canonicalizations.create_integer_lookup_op(
              input_arg=input_arg,
              floating_point_func=floating_point_func,
              in_scale=in_scale,
              in_zero_point=in_zero_point,
              out_scale=out_scale,
              out_zero_point=out_zero_point,
              in_axis=in_axis,
              out_axis=out_axis,
              in_dtype=in_dtype,
              out_dtype=out_dtype,
          ),
          input_arg.data.numpy(),
      )
  
file_path: tvm/tests/python/relay/qnn/test_canonicalizations.py
imports: from typing import Callable
  import numpy
  from tvm import relay
  from tvm.relay.qnn.op import canonicalizations
label_desc: Use image node_id 2 for calling the TestIntegerTableLookupTable obj's underlying member method code with example usage: obj.fake_identity_func_relay(floating_point_func, input_arg, in_scale, in_zero_point, out_scale, out_zero_point, in_axis, out_axis, in_dtype, out_dtype) and returns: canonicalizations,  input_arg