code: def pkginfo(name, version, arch, repoid, install_date=None, install_date_time_t=None):
      '''
      Build and return a pkginfo namedtuple
      '''
      pkginfo_tuple = collections.namedtuple(
          'PkgInfo',
          ('name', 'version', 'arch', 'repoid', 'install_date',
           'install_date_time_t')
      )
      return pkginfo_tuple(name, version, arch, repoid, install_date,
                           install_date_time_tf pkginfo(name, version, arch, repoid, install_date=None, install_date_time_t=None):
      '''
      Build and return a pkginfo namedtuple
      '''
      pkginfo_tuple = collections.namedtuple(
          'PkgInfo',
          ('name', 'version', 'arch', 'repoid', 'install_date',
           'install_date_time_t')
      )
      return pkginfo_tuple(name, version, arch, repoid, install_date,
                           install_date_time_t)
docs: Build and return a pkginfo namedtuple