class_docstr: Configuration options for tracing.
code: def __post_init__(self):
      if self.attributes:
          for attribute in self.attributes:
              if (
                  attribute
                  not in attributes_lib.TRACING_COMPILATION_ALLOWLIST
              ):
                  raise ValueError(
                      f"Tracing compilation does not support `{attribute}` as an"
                      " attribute."
                  )
  
      if not self.polymorphic_type or self.default_values is None:
          self.polymorphic_type = (
              function_type_lib.FunctionType.from_callable(
                  self.python_function
              )
          )
          self.default_values = (
              function_type_lib.FunctionType.get_default_values(
                  self.python_function
              )
          )
  
      self._input_signature = function_type_utils.to_input_signature(
          self.polymorphic_type
      )
  
imports: import contextlib
  import dataclasses
  import enum
  import threading
  from typing import Any, Callable, Dict, Optional, Tuple
  from tensorflow.core.function import trace_type
  from tensorflow.core.function.capture import capture_container
  from tensorflow.core.function.polymorphism import function_cache
  from tensorflow.core.function.polymorphism import function_type
  from tensorflow.python.autograph.core import ag_ctx
  from tensorflow.python.eager import monitoring
  from tensorflow.python.eager.polymorphic_function import attributes
  from tensorflow.python.eager.polymorphic_function import concrete_function
  from tensorflow.python.eager.polymorphic_function import function_context
  from tensorflow.python.eager.polymorphic_function import function_type_utils
  from tensorflow.python.eager.polymorphic_function import transform
  from tensorflow.python.framework import func_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.profiler import trace
  from tensorflow.python.util import compat
label_desc: Use image node_id 1 for calling the TracingOptions obj's underlying member method code with example usage: obj.__post_init__() without return types