code: def test_colours():
      colour_wrappers = [
          (Colours.END, Colours.black),
          (Colours.BLUE, Colours.blue),
          (Colours.BOLD, Colours.bold),
          (Colours.CYAN, Colours.cyan),
          (Colours.DARKCYAN, Colours.darkcyan),
          (Colours.GREEN, Colours.green),
          (Colours.PURPLE, Colours.purple),
          (Colours.RED, Colours.red),
          (Colours.UNDERLINE, Colours.underline),
          (Colours.YELLOW, Colours.yellow),
      ]
  
      for colour, wrapper in colour_wrappers:
          text1 = Colours._wrap_colour("test", colour)
          text2 = wrapper("test")
  
          assert text1.split("test") == [colour, Colours.END]
          assert text2.split("test") == [colour, Colours.END]
  
file_path: BayesianOptimization/tests/test_util.py
imports: import pytest
  import numpy
  from bayes_opt import BayesianOptimization
  from bayes_opt.util import UtilityFunction, Colours
  from bayes_opt.util import acq_max, load_logs, ensure_rng
  from sklearn.gaussian_process.kernels import Matern
  from sklearn.gaussian_process import GaussianProcessRegressor
  from scipy.optimize import NonlinearConstraint
  from pathlib import Path
label_desc: Use image node_id 10 for calling a global function with example usage: test_colours() without return types