code: def bool_str(string):
      
      if string not in BOOL_STRS:
          raise ValueError('Invalid boolean string: "{}"'.format(string))
      return True if string == 'true' else False
docs: Returns a boolean from a string imput of 'true' or 'false