code: def has_secret(self, value):  # type: (Any) -> bool
          
          if isinstance(value, string_types):
              for k in self.secrets:
                  if k in value:
                      return True
          elif isinstance(value, MutableMapping):
              for this_value in value.values():
                  if self.has_secret(this_value):
                      return True
          elif isinstance(value, MutableSequence):
              for this_value in value:
                  if self.has_secret(this_value):
                      return True
          return False
docs: Test if the provided document has any of our secrets.