code: def test_ocr_model_from_json(self):
      sample_path = os.path.abspath(
          os.path.join(
              os.path.dirname(__file__),
              "..",
              "..",
              "res",
              "common",
              "sample.json",
          )
      )
      aug = OcrAug(dict_of_path=sample_path)
      augmented_data = aug.augment("0000000")
      augmented_text = augmented_data[0]
      self.assertIn("3", augmented_text)
  
      with self.assertRaises(Exception) as error:
          sample_path = os.path.abspath(
              os.path.join(
                  os.path.dirname(__file__),
                  "..",
                  "..",
                  "res",
                  "common",
                  "non_exist.json",
              )
          )
          aug = OcrAug(dict_of_path=sample_path)
      self.assertIn(
          "The dict_of_path does not exist", str(error.exception)
      )
  
file_path: nlpaug/test/augmenter/char/test_ocr.py
imports: import unittest, os
  from nlpaug.augmenter.char import OcrAug
label_desc: Use image node_id 5 for calling the TestOcr obj's underlying member method code with example usage: obj.test_ocr_model_from_json() without return types