code: def test_no_private_tf_api():
      # TODO: remove all elements of the list and remove the allowlist
      # This allowlist should not grow. Do not add elements to this list.
      allowlist = [
          "tensorflow_addons/metrics/r_square.py",
          "tensorflow_addons/utils/test_utils.py",
          "tensorflow_addons/seq2seq/decoder.py",
          "tensorflow_addons/utils/types.py",
      ]
  
      for file_path, line_idx, line in get_lines_of_source_code(
          allowlist
      ):
          if (
              "import tensorflow.python" in line
              or "from tensorflow.python" in line
          ):
              raise ImportError(
                  "A private tensorflow API import was found in {} at line {}.\n"
                  "tensorflow.python refers to TensorFlow's internal source "
                  "code and private functions/classes.\n"
                  "The use of those is forbidden in Addons for stability reasons."
                  "\nYou should find a public alternative or ask the "
                  "TensorFlow team to expose publicly the function/class "
                  "that you are using.\n"
                  "If you're trying to do `import tensorflow.python.keras` "
                  "it can be replaced with `import tensorflow.keras`."
                  "".format(file_path, line_idx + 1)
              )
  
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 5 for calling a global function with example usage: test_no_private_tf_api() without return types