code: def conforms(self, instance, format):
          
  
          try:
              self.check(instance, format)
          except FormatError:
              return False
          else:
              return True
docs: Check whether the instance conforms to the given format.
  
          Arguments:
  
              instance (*any primitive type*, i.e. str, number, bool):
  
                  The instance to check
  
              format (str):
  
                  The format that instance should conform to
  
          Returns:
  
              bool: whether it conformed