code: def _is_hit_naive(
      confidence_scores, thresholds, ground_truth, label_sets
  ):
      _is_cover = []
      for t in thresholds:
          for c in confidence_scores:
              if float(c) >= t:
                  _is_cover.append(1)
                  break
          else:
              _is_cover.append(0)
      assert len(_is_cover) == len(thresholds)
      for i, ls in enumerate(label_sets):
          if ground_truth in ls:
              return [
                  int(float(confidence_scores[i]) > t)
                  for t in thresholds
              ], _is_cover
      return [0] * len(thresholds), _is_cover
  
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 8 for calling a global function with example usage: _is_hit_naive(confidence_scores, thresholds, ground_truth, label_sets) and returns: unknown,  _is_cover, unknown,  _is_cover