code: def colourise(__text: str, *args, **kwargs) -> str:
      
      if sys.stdout.isatty():
          __text = style(__text, *args, **kwargs)
      return __text
docs: Colourise text using click’s style function.
  
      Returns text untouched if colour output is not enabled, or ``stdout`` is
      not a tty.
  
      See :func:`click.style` for parameters
  
      Args:
          __text: Text to colourise
      Returns:
          Colourised text, when possible