original_string: private function predict(array $image, $modelType, $language = null)
      {
          $data['inputs'] = [
              [
                  'data' => [
                      'image' => $image,
                  ],
              ],
          ];
  
          if ($language) {
              $data['model'] = [
                  'output_info' => [
                      'output_config' => [
                          'language' => $language,
                      ],
                  ],
              ];
          }
  
          return $this->getRequest()->request(
              'POST',
              $this->getRequestUrl(sprintf('models/%s/outputs', $modelType)),
              $data
          );
      }
code: private function predict(array $image, $modelType, $language = null)
      {
          $data['inputs'] = [
              [
                  'data' => [
                      'image' => $image,
                  ],
              ],
          ];
  
          if ($language) {
              $data['model'] = [
                  'output_info' => [
                      'output_config' => [
                          'language' => $language,
                      ],
                  ],
              ];
          }
  
          return $this->getRequest()->request(
              'POST',
              $this->getRequestUrl(sprintf('models/%s/outputs', $modelType)),
              $data
          );
      }
code_tokens: private function predict ( array $ image , $ modelType , $ language = null ) { $ data [ 'inputs' ] = [ [ 'data' => [ 'image' => $ image , ] , ] , ] ; if ( $ language ) { $ data [ 'model' ] = [ 'output_info' => [ 'output_config' => [ 'language' => $ language , ] , ] , ] ; } return $ this -> getRequest ( ) -> request ( 'POST' , $ this -> getRequestUrl ( sprintf ( 'models/%s/outputs' , $ modelType ) ) , $ data ) ; }
docstring: The actual predict call
  
  @param array $image
  @param $modelType
  @param string|null $language Language to return results in
  
  @return array
docstring_tokens: The actual predict call