original_string: public function getModelVersionById($modelId, $versionId)
      {
          $modelResult = $this->getRequest()->request(
              'GET',
              $this->getRequestUrl(sprintf('models/%s/versions/%s', $modelId, $versionId))
          );
  
          if (isset($modelResult['model_version'])) {
              $modelVersion = new ModelVersion($modelResult['model_version']);
          } else {
              throw new \Exception('Model Versions Not Found');
          }
  
          return $modelVersion;
      }
code: public function getModelVersionById($modelId, $versionId)
      {
          $modelResult = $this->getRequest()->request(
              'GET',
              $this->getRequestUrl(sprintf('models/%s/versions/%s', $modelId, $versionId))
          );
  
          if (isset($modelResult['model_version'])) {
              $modelVersion = new ModelVersion($modelResult['model_version']);
          } else {
              throw new \Exception('Model Versions Not Found');
          }
  
          return $modelVersion;
      }
code_tokens: public function getModelVersionById ( $ modelId , $ versionId ) { $ modelResult = $ this -> getRequest ( ) -> request ( 'GET' , $ this -> getRequestUrl ( sprintf ( 'models/%s/versions/%s' , $ modelId , $ versionId ) ) ) ; if ( isset ( $ modelResult [ 'model_version' ] ) ) { $ modelVersion = new ModelVersion ( $ modelResult [ 'model_version' ] ) ; } else { throw new \ Exception ( 'Model Versions Not Found' ) ; } return $ modelVersion ; }
docstring: Gets Model Version By Id
  
  @param string $modelId
  @param string $versionId
  
  @return ModelVersion
  
  @throws \Exception
docstring_tokens: Gets Model Version By Id