code: def list_of_same(self, tup_tree, acceptable):
          
  
          k = kids(tup_tree)
  
          if not k:            # empty list, consistent with list_of_various
              return []
  
          a_child = name(k[0])
          if a_child not in acceptable:
              raise CIMXMLParseError(
                  _format("Element {0!A} has invalid child element {1!A} "
                          "(allowed is a sequence of like elements from {2!A})",
                          name(tup_tree), a_child, acceptable),
                  conn_id=self.conn_id)
          result = []
          for child in k:
              if name(child) != a_child:
                  raise CIMXMLParseError(
                      _format("Element {0!A} has invalid child element {1!A} "
                              "(sequence must have like elements {2!A})",
                              name(tup_tree), name(child), a_child),
                      conn_id=self.conn_id)
              result.append(self.parse_any(child))
  
          return result
docs: Parse a list/tuple of elements from child nodes.
  
          The children can be any of the listed acceptable types, but they
          must all be the same.