class_docstr: Default casting behaviors.
code: def __init__(self, allow_specs=False):
      self._allow_specs = allow_specs
  
imports: import collections.abc
  from typing import Any, Dict, Hashable, Optional
  import weakref
  from tensorflow.core.function.trace_type import custom_nest_trace_type
  from tensorflow.core.function.trace_type import default_types
  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 InternalCastContext object from inherited base classes: trace with example: obj = InternalCastContext(allow_specs)