code: def bash_ansi_codes():
      """Utility function to generate a bash command for all ANSI color-codes in 24-bit format using both foreground and background colors."""
      str = r"""
          for r in {0..255}; do
              for g in {0..255}; do
                  for b in {0..255}; do
                      echo -e "\e[38;2;${r};${g};${b}m"'\\e[38;2;'"${r}"m" FOREGROUND\e[0m"
                      echo -e "\e[48;2;${r};${g};${b}m"'\\e[48;2;'"${r}"m" FOREGROUND\e[0m"
                  done
              done
          done"""
      return str
  
file_path: pennylane/pennylane/logging/formatters/formatter.py
imports: import logging
  from logging import Formatter
  from typing import NamedTuple, Tuple, Union
label_desc: Use image node_id 2 for calling a global function with example usage: bash_ansi_codes() and returns: str