code: def parse(config):
          
          if not isinstance(config, basestring):
              raise TypeError("Contains input must be a simple string")
          validator = ContainsValidator()
          validator.contains_string = config
          return validator
docs: Parse a contains validator, which takes as the config a simple string to find