code: def escape(self, obj):
          
          if isinstance(obj, str):
              return "'" + self.escape_string(obj) + "'"
          if isinstance(obj, bytes):
              return escape_bytes_prefixed(obj)
          return escape_item(obj, self._charset)
docs: Escape whatever value you pass to it