code: def _validate_feature_format(self, feature_format):
          
  
          if feature_format not in self.valid_feature_formats:
              raise InvalidFeatureFormatError(
                  "{} is not a valid feature format".format(feature_format)
              )
  
          return feature_format
docs: Validates feature format, raising error if invalid.