Implement the ObjectDetection functionality in the /app/ directory that allows users to train and evaluate object detection models using a given dataset. The implementation should fulfill the following requirements:
Dataset Loading:
Implement a function get_dataset(path) that loads a dataset from the specified VOC path using ObjectDetection.Dataset.from_voc(path).
Training and Evaluation:
Create a class ObjectDetection that supports model training and evaluation with the following parameters:
num_trials: Number of trials for training (integer).
epochs: Number of training epochs (integer).
batch_size: Number of samples per batch during training (integer).
transfer: Optional parameter to specify transfer learning models from a categorical choice (e.g., 'yolo3_darknet53_coco', 'ssd_512_resnet50_v1_voc').
estimator: Specify the type of estimator to use (e.g., 'ssd').
Model Training:
Implement the fit(train_data) method that trains the model on the provided training dataset and returns the trained model.
Implement the fit_summary() method which returns a dictionary containing at least the key valid_map, representing the validation mean Average Precision (mAP).
Prediction Functionality:
Implement a predict(test_data) method that takes a test dataset and returns the model predictions.
Testing Condition:
Ensure that when the implemented functionality goes through the training process, the validation mean Average Precision (mAP) returned by fit_summary() is greater than 0 after fitting on the training data.
Implement appropriate error handling for any dataset loading or training issues.
This implementation must be able to pass the provided tests, so it should handle the specified dataset and parameters as indicated in the test cases, even though currently, they are marked to skip due to instability.