def enable_dynamic_asserts(enable: bool = True):
  """Turn on or off using dynamic (graph execution time) checks.

  Enabled by default, but can be disabled to ensure we aren't doing any
  extraneous compute during graph evaluation time.

  Args:
    enable: Whether or not to enable dynamic asserts.
  """
  global _dynamic_asserts_enabled
  _dynamic_asserts_enabled = enable
Turn on or off using dynamic (graph execution time) checks.

  Enabled by default, but can be disabled to ensure we aren't doing any
  extraneous compute during graph evaluation time.

  Args:
    enable: Whether or not to enable dynamic asserts.
  
language/canine/tensor_contracts.py