code: def create_summary_detail(df, no_color):
      """
      Build a summary with the details about hoy many queries pass/fail  and what queries have the failed status.
  
      ----------
      df : pdf log
      """
  
      pdf = df
      pdf["Result"] = df["Result"].replace(1, "Success")
      pdf["Result"] = df["Result"].replace(0, "Fail")
  
      # making boolean series for a team name
      filter_fail = pdf["Result"] == "Fail"
  
      # filtering data
      pdf2 = pdf.where(filter_fail)
      pdf_fail = pdf2.dropna()
  
      if no_color:
          green = ""
          yellow = ""
          # red = ""
          endc = ""
      else:
          green = bcolors.OKGREEN
          yellow = bcolors.WARNING
          # red = bcolors.FAIL
          endc = bcolors.ENDC
  
      # display
      print(
          green
          + "========================================================"
      )
      print("DETAILED SUMMARY TESTS")
      print(
          "========================================================"
          + endc
      )
      pd.set_option("max_rows", 1500)
      print(
          pdf.groupby(["TestGroup", "InputType"])[
              "Result"
          ].value_counts()
      )
      print(
          yellow
          + "========================================================"
      )
      print("FAILED TESTS" + yellow)
      print(
          "========================================================"
          + endc
      )
      # pd.set_option('max_columns', 5)
      # pd.set_option('max_colwidth', 1000)
  
      pd.set_option("display.max_columns", None)
      pd.set_option("display.width", 2000)
      pd.set_option("display.float_format", "{:20,.2f}".format)
      pd.set_option("display.max_colwidth", None)
      print(
          pdf_fail.groupby(["TestGroup", "InputType", "Result"])[
              "TestId"
          ]
          .apply(",".join)
          .reset_index()
      )
  
imports: import json
  import logging
  import os
  import re
  import time
  import yaml
  import numpy
  import pandas
  import blazingsql
  from blazingsql import DataType
  from BlazingLogging import loggingHandler
  from Configuration import ExecutionMode
  from Configuration import Settings
  from DataBase import createSchema
label_desc: Use image node_id 20 for calling a global function with example usage: create_summary_detail(df, no_color) without return types