code: def verify(self, obj):
          
  
          if self.encoding == 'none' and not isinstance(obj, (bytes, bytearray)):
              raise ValidationError('Byte object was not either bytes or a bytearray', type=obj.__class__.__name__)
          elif self.encoding == 'base64':
              try:
                  data = base64.b64decode(obj)
                  return data
              except TypeError:
                  raise ValidationError("Could not decode base64 encoded bytes", obj=obj)
          elif self.encoding == 'hex':
              try:
                  data = binascii.unhexlify(obj)
                  return data
              except TypeError:
                  raise ValidationError("Could not decode hex encoded bytes", obj=obj)
  
          return obj
docs: Verify that the object conforms to this verifier's schema
  
          Args:
              obj (object): A python object to verify
  
          Returns:
              bytes or byterray: The decoded byte buffer
  
          Raises:
              ValidationError: If there is a problem verifying the object, a
                  ValidationError is thrown with at least the reason key set indicating
                  the reason for the lack of validation.