code: def try_keys(self, input_keys, tester, input_func):
      for average in [True, False]:
          keys = ", ".join(
              [
                  tester.accuracies_keyname(
                      k,
                      average=average,
                      label_hierarchy_level=tester.label_hierarchy_level,
                  )
                  for k in input_keys
              ]
          )
          try:
              return input_func(keys)
          except (KeyError, sqlite3.OperationalError):
              pass
      raise KeyError
  
imports: import os
  import sqlite3
  import torch
  from .None import common_functions
label_desc: Use image node_id 12 for calling the HookContainer obj's underlying member method code with example usage: obj.try_keys(input_keys, tester, input_func) and returns: input_func