code: def _openai_logging(self, epoch_result):
          
          for key in sorted(epoch_result.keys()):
              if key == 'fps':
                  # Not super elegant, but I like nicer display of FPS
                  openai_logger.record_tabular(key, int(epoch_result[key]))
              else:
                  openai_logger.record_tabular(key, epoch_result[key])
  
          openai_logger.dump_tabular()
docs: Use OpenAI logging facilities for the same type of logging