<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _escape(self, value):
 """Escape given value unless it is safe."""

        if isinstance(value, SafeString):
            return value

        return shellescape.quote(value)