docstr: Test GetDatapath and Init with an invalid data path.
docstr_tok: ["Test","GetDatapath","and","Init","with","an","invalid","data","path","."]
code: def test_data_path(self):
      """Test GetDatapath and Init with an invalid data path."""
      path = self._api.GetDatapath()
      self._api.End()
      self.assertRaises(
          RuntimeError,
          self._api.Init,
          path=(self._test_dir + os.path.sep),
      )  # no tessdata
      if _TESSERACT_VERSION >= 0x3999800:
          new_path = path
      else:
          new_path = (
              os.path.abspath(os.path.join(path, os.path.pardir))
              + os.path.sep
          )
      self._api.End()
      self._api.Init(new_path)
      self.assertEqual(self._api.GetDatapath(), path)
  
imports: import unittest
  import re
  import os.path
  import tesserocr
label_desc: Use image node_id 10 for calling the TestTessBaseApi obj's underlying member method code with example usage: obj.test_data_path() without return types