code: def requires_ipython(version="3.0"):
      ipython_present, message = has_ipython(version)
      return skipif(not ipython_present, reason=message)
  
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 22 for calling a global function with example usage: requires_ipython(version) and returns: skipif