class_docstr: Represents the TraceType of a class implmenting the CustomNestProtocol.
class_docstr_tok: ["Represents","the","TraceType","of","a","class","implmenting","the","CustomNestProtocol","."]
code: def __init__(
      self,
      value_type: Type[Any],
      metadata: Any,
      components: PythonTuple[trace.TraceType],
  ):
      if not issubclass(
          value_type, custom_nest_protocol.CustomNestProtocol
      ):
          raise ValueError(
              f"{value_type!r} does not implement CustomNestProtocol."
          )
      self.value_type = value_type
      self.metadata = metadata
      self.components = components
  
file_path: tensorflow/tensorflow/core/function/trace_type/custom_nest_trace_type.py
imports: from typing import Any, Iterator, List, Optional, Sequence, Tuple, Type
  from tensorflow.core.function.trace_type import util
  from tensorflow.python.types import trace
  from tensorflow.python.util import custom_nest_protocol
label_desc: Use image node_id 1 to create a new CustomNestTraceType object from inherited base classes: trace with example: obj = CustomNestTraceType(value_type, metadata, components)