code: def round_sig(x, sig=6):
      return round(x, sig - int(floor(log10(abs(x)))) - 1)
  
file_path: calamari/calamari_ocr/test/test_train_consistency.py
imports: import unittest
  from math import log10, floor
  from tensorflow import keras
  from calamari_ocr.ocr.scenario import CalamariScenario
  from calamari_ocr.test.test_train_file import uw3_trainer_params
label_desc: Use image node_id 1 for calling a global function with example usage: round_sig(x, sig) and returns: round