code: def assert_true(x, msg=None):
      """Backport"""
      if x:
          return
      std_msg = "%s is not True" % (_safe_rep(x),)
      raise AssertionError(_format_msg(msg, std_msg))
  
imports: from __future__ import print_function
  import numpy
  import sys
  import os
  import inspect
  import gc
  import pytest
  import functools
  from packaging.version import Version
  from ..util.check_environment import has_backend
label_desc: Use image node_id 8 for calling a global function with example usage: assert_true(x, msg) without return types