original_string: public function predictPath($path, $modelType, $language = null)
      {
          if (!file_exists($path)) {
              throw new FileNotFoundException($path);
          }
  
          return $this->predict(
              [
                  'base64' => base64_encode(file_get_contents($path)),
              ],
              $modelType,
              $language
          );
      }
code: public function predictPath($path, $modelType, $language = null)
      {
          if (!file_exists($path)) {
              throw new FileNotFoundException($path);
          }
  
          return $this->predict(
              [
                  'base64' => base64_encode(file_get_contents($path)),
              ],
              $modelType,
              $language
          );
      }
code_tokens: public function predictPath ( $ path , $ modelType , $ language = null ) { if ( ! file_exists ( $ path ) ) { throw new FileNotFoundException ( $ path ) ; } return $ this -> predict ( [ 'base64' => base64_encode ( file_get_contents ( $ path ) ) , ] , $ modelType , $ language ) ; }
docstring: Predict by image path
  
  @param string $path Path to image
  @param string $modelType Type of model to predict
  @param string|null $language Language to return results in
  
  @return array
docstring_tokens: Predict by image path