code: def unescape(inp, quote='"'):
      
      if len(inp) < 2:
          return inp
  
      output = ""
      unesc = False
      for act in inp:
          if act == quote and unesc:
              output = output[:-1]
  
          output += act
  
          if act == "\\":
              unesc = not unesc
          else:
              unesc = False
  
      return output
docs: Unescape `quote` in string `inp`.
  
      Example usage::
  
          >> unescape('hello \\"')
          'hello "'
  
      Args:
          inp (str): String in which `quote` will be unescaped.
          quote (char, default "): Specify which character will be unescaped.
  
      Returns:
          str: Unescaped string.