code: def Pack(cls, obj, version):
      
      if isinstance(obj, ServiceQuery):
        return str(obj)
      return obj
docs: Pack the given object using AdWords-specific logic.
  
      Args:
        obj: an object to be packed for SOAP using AdWords-specific logic, if
            applicable.
        version: the version of the current API, e.g. 'v201809'
  
      Returns:
        The given object packed with AdWords-specific logic for SOAP, if
        applicable. Otherwise, returns the given object unmodified.