code: def create_and_print_dataframe(output_attributes_acc_map):
      countries_names = list(
          output_attributes_acc_map["country"].keys()
      )
      concept_names = list(output_attributes_acc_map["concept"].keys())
      print(
          f"Total : concepts={len(concept_names)}, countries={len(countries_names)}"
      )
  
      COUNTRY_OFFSET = 0
      NUM_COUNTRIES = 12
      while COUNTRY_OFFSET <= len(countries_names):
          d = {"label": [], "metric": []}
          for country in countries_names[
              COUNTRY_OFFSET : min(
                  (COUNTRY_OFFSET + NUM_COUNTRIES), len(countries_names)
              )
          ]:
              d[country] = []
  
          for concept in concept_names:
              d["label"].append(concept)
              d["label"].append("")
              d["metric"].append("TPR (hit_rate)")
              d["metric"].append("#images")
              for country in countries_names[
                  COUNTRY_OFFSET : min(
                      (COUNTRY_OFFSET + NUM_COUNTRIES),
                      len(countries_names),
                  )
              ]:
                  country_concept = f"{country}_{concept}"
                  if (
                      country_concept
                      in output_attributes_acc_map["country_concept"]
                  ):
                      d[country].append(
                          float(
                              output_attributes_acc_map[
                                  "country_concept"
                              ][country_concept]["hit_rate"]
                          )
                      )
                      d[country].append(
                          float(
                              output_attributes_acc_map[
                                  "country_concept"
                              ][country_concept]["total"]
                          )
                      )
                  else:
                      d[country].append("")
                      d[country].append("")
          df = pd.DataFrame(data=d)
          print(df.to_markdown())
          print("\n")
          COUNTRY_OFFSET += NUM_COUNTRIES
  
imports: import json
  import os
  from math import ceil, floor
  from pathlib import Path
  import matplotlib.pyplot
  import numpy
  import pandas
  import seaborn
  from IPython.display import display_html
  from matplotlib.ticker import FixedLocator
  from vissl.utils.io import load_file, save_file
label_desc: Use image node_id 4 for calling a global function with example usage: create_and_print_dataframe(output_attributes_acc_map) without return types