code: def get_loss_history(self, loss_names=()):
      columns = "*" if len(loss_names) == 0 else ", ".join(loss_names)
      table_name = "loss_histories"
      if not self.record_keeper.table_exists(table_name):
          return {}
      output = self.record_keeper.query(
          "SELECT {} FROM {}".format(columns, table_name),
          return_dict=True,
      )
      output.pop("id", None)
      return output
  
imports: import os
  import sqlite3
  import torch
  from .None import common_functions
label_desc: Use image node_id 9 for calling the HookContainer obj's underlying member method code with example usage: obj.get_loss_history(loss_names) and returns: output, dict