code: def assert_runtime(cond, msg=""):
      """Assert at runtime
  
      Examples
      --------
      >>> assert_runtime(False, "This is a test")
      Traceback (most recent call last):
      ...
      RuntimeError: This is a test
  
      Parameters
      ----------
      cond: bool
          Condition to assert
      msg: str
          Message to raise if condition is not met
  
      Raises
      ------
      RuntimeError
          If condition is not met
  
      """
      if not cond:
          raise RuntimeError(msg)
  
file_path: deepchem/deepchem/utils/differentiation_utils/misc.py
imports: import contextlib
  import copy
  from typing import Mapping, Callable, Union, Dict, List
label_desc: Use image node_id 5 for calling a global function with example usage: assert_runtime(cond, msg) without return types