code: def test_api_typed():
      modules_list = [
          tfa,
          tfa.activations,
          tfa.callbacks,
          tfa.image,
          tfa.losses,
          tfa.metrics,
          tfa.optimizers,
          tfa.rnn,
          tfa.seq2seq,
          tfa.text,
      ]
      # Files within this list will be exempt from verification.
      exception_list = [
          tfa.rnn.PeepholeLSTMCell,
          tf.keras.optimizers.Optimizer,
      ]
      if (
          importlib.util.find_spec("tensorflow.keras.optimizers.legacy")
          is not None
      ):
          exception_list.append(tf.keras.optimizers.legacy.Optimizer)
  
      help_message = (
          "You can also take a look at the section about it in the CONTRIBUTING.md:\n"
          "https://github.com/tensorflow/addons/blob/master/CONTRIBUTING.md#about-type-hints"
      )
      ensure_api_is_typed(
          modules_list,
          exception_list,
          init_only=True,
          additional_message=help_message,
      )
  
file_path: addons/tools/testing/source_code_test.py
imports: import glob
  import os
  from typedapi import ensure_api_is_typed
  import importlib
  import tensorflow_addons
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: test_api_typed() without return types