code: def escape_values(values):
      
      if isinstance(values, (tuple, list)):
          return tuple([escape(value) for value in values])
      elif isinstance(values, dict):
          return dict([
              (key, escape(value)) for (key, value) in values.items()
          ])
      else:
          raise InterfaceError("escape_values expects list, tuple or dict")
docs: Escape multiple values from a list, tuple or dict.