code: def seq_2_DbDevInfos(seq, vec=None):
      
      if vec is None:
          if isinstance(seq, DbDevInfos):
              return seq
          vec = DbDevInfos()
      if not isinstance(vec, DbDevInfos):
          raise TypeError('vec must be a tango.DbDevInfos')
      for e in seq:
          vec.append(e)
      return vec
docs: Converts a python sequence<DbDevInfo> object to a :class:`tango.DbDevInfos`
  
          :param seq: the sequence of DbDevInfo
          :type seq: sequence<DbDevInfo>
          :param vec: (optional, default is None) an :class:`tango.DbDevInfos`
                      to be filled. If None is given, a new :class:`tango.DbDevInfos`
                      is created
          :return: a :class:`tango.DbDevInfos` filled with the same contents as seq
          :rtype: :class:`tango.DbDevInfos`