code: def to_bool(text):
      '''
      Convert the string name of a boolean to that boolean value.
      '''
      downcased_text = six.text_type(text).strip().lower()
  
      if downcased_text == 'false':
          return False
      elif downcased_text == 'true':
          return True
      return texf to_bool(text):
      '''
      Convert the string name of a boolean to that boolean value.
      '''
      downcased_text = six.text_type(text).strip().lower()
  
      if downcased_text == 'false':
          return False
      elif downcased_text == 'true':
          return True
      return text
docs: Convert the string name of a boolean to that boolean value.