55 if string_value ==
"Bypass":
56 return DebayerConversionPolicy.BYPASS
57 if string_value ==
"BayerOnly":
58 return DebayerConversionPolicy.BAYER_ONLY
59 if string_value ==
"BayerAndMono":
60 return DebayerConversionPolicy.BAYER_AND_MONO
63 f
"The given conversion conversion policy is not supported. Given: {string_value}")