class_docstr: Base class for a TFDS function decorator.
  
  When a decorated function is called, the method with the same name as this
  class is called on the registered loggers.
docstr: Decorator to call the corresponding method on registered loggers.
docstr_tok: ["Decorator","to","call","the","corresponding","method","on","registered","loggers","."]
code: def __call__(self, function, instance, args, kwargs):
      """Decorator to call the corresponding method on registered loggers."""
      metadata = self._start_call()
      try:
          return function(*args, **kwargs)
      except Exception:
          metadata.mark_error()
          raise
      finally:
          self._finish_call(metadata, instance, args, kwargs)
  
imports: import abc
  import atexit
  import collections
  import functools
  import threading
  from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar
  from absl import flags
  from tensorflow_datasets.core.logging import base_logger
  from tensorflow_datasets.core.logging import call_metadata
  from tensorflow_datasets.core.logging import logging_logger
  import wrapt
label_desc: Use image node_id 5 for calling the _FunctionDecorator obj's underlying member method code with example usage: obj.__call__(function, instance, args, kwargs) and returns: function