class_docstr: Default casting behaviors.
docstr: Allow TypeSpecs to be casted (instead of the actual CompositeTensors).
docstr_tok: ["Allow","TypeSpecs","to","be","casted","(","instead","of","the","actual","CompositeTensors",")","."]
code: def allow_specs(self) -> bool:
      """Allow TypeSpecs to be casted (instead of the actual CompositeTensors)."""
      # Public APIs like get_concrete_function allow users to pass in specs
      # instead which need to pass through input binding etc.
      return self._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 2 for calling the InternalCastContext obj's underlying member method code with example usage: obj.allow_specs() and returns: self