code: def register_custom_kernels() -> None:
      all_shared_objects = _get_all_shared_objects()
      if not all_shared_objects:
          raise FileNotFoundError(
              "No shared objects files were found in the custom ops "
              "directory in Tensorflow Addons, check your installation again, "
              "or, if you don't need custom ops, call `tfa.register_all(custom_kernels=False)`"
              " instead."
          )
      try:
          for shared_object in all_shared_objects:
              tf.load_op_library(shared_object)
      except tf.errors.NotFoundError as e:
          raise RuntimeError(
              "One of the shared objects ({}) could not be loaded. This may be "
              "due to a number of reasons (incompatible TensorFlow version, buiding from "
              "source with different flags, broken install of TensorFlow Addons...). If you "
              "wanted to register the shared objects because you needed them when loading your "
              "model, you should fix your install of TensorFlow Addons. If you don't "
              "use custom ops in your model, you can skip registering custom ops with "
              "`tfa.register_all(custom_kernels=False)`".format(
                  shared_object
              )
          ) from e
  
file_path: addons/tensorflow_addons/register.py
imports: import glob
  from pathlib import Path
  import tensorflow
  from tensorflow_addons.utils.resource_loader import get_path_to_datafile
label_desc: Use image node_id 3 for calling a global function with example usage: register_custom_kernels() without return types