code: def _require(condition: bool, err_msg: str = None) -> None:
      """Checks if the specified condition is true else raises exception
  
      Args:
          condition: The condition to test
          err_msg: If specified, it's the error message to use if condition is not true.
  
      Raises:
        ValueError: Raised when the condition is false
  
      Returns:
          None
      """
      if not condition:
          raise ValueError(err_msg)
  
file_path: io/tensorflow_io/python/experimental/avro_record_dataset_ops.py
imports: import tensorflow
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 1 for calling a global function with example usage: _require(condition, err_msg) without return types