code: def _get_rslt_params(self, result, namespace):
          
          rtn_objects = []
          end_of_sequence = False
          enumeration_context = None
          end_of_sequence_found = False  # flag True if found and valid value
          enumeration_context_found = False  # flag True if ec tuple found
          for p in result:
              if p[0] == 'EndOfSequence':
                  if isinstance(p[2], six.string_types):
                      p2 = p[2].lower()
                      if p2 in ['true', 'false']:  # noqa: E125
                          end_of_sequence = True if p2 == 'true' else False
                          end_of_sequence_found = True
                      else:
                          raise CIMXMLParseError(
                              _format("EndOfSequence output parameter has an "
                                      "invalid value: {0!A}", p[2]),
                              conn_id=self.conn_id)
  
              elif p[0] == 'EnumerationContext':
                  enumeration_context_found = True
                  if isinstance(p[2], six.string_types):
                      enumeration_context = p[2]
  
              elif p[0] == "IRETURNVALUE":
                  rtn_objects = p[2]
  
          if not end_of_sequence_found and not enumeration_context_found:
              raise CIMXMLParseError(
                  "Expected EndOfSequence or EnumerationContext output "
                  "parameter in open/pull response, but none received",
                  conn_id=self.conn_id)
  
          if not end_of_sequence and enumeration_context is None:
              raise CIMXMLParseError(
                  "Expected EnumerationContext output parameter because "
                  "EndOfSequence=False, but did not receive it.",
                  conn_id=self.conn_id)
  
          # Drop enumeration_context if eos True
          # Returns tuple of enumeration context and namespace
          rtn_ctxt = None if end_of_sequence else (enumeration_context,
                                                   namespace)
          return (rtn_objects, end_of_sequence, rtn_ctxt)
docs: Common processing for pull results to separate end-of-sequence,
          enum-context, and entities in IRETURNVALUE.
  
          Returns tuple of entities in IRETURNVALUE, end_of_sequence,
          and enumeration_context)