def METHOD_NAME(self):
    image_processor = self.image_processing_class.from_dict(self.image_processor_dict)
    self.assertEqual(image_processor.size, {"shortest_edge": 18})
    self.assertEqual(image_processor.crop_size, {"height": 18, "width": 18})
    image_processor = self.image_processing_class.from_dict(self.image_processor_dict, size=42, crop_size=84)
    self.assertEqual(image_processor.size, {"shortest_edge": 42})
    self.assertEqual(image_processor.crop_size, {"height": 84, "width": 84})