class_docstr: Class describing a cuda package with a key/name and a dictionary where the key
  is a cuda version and value is the list of versions supported.
  
  Parameters
  ----------
  `key`: str
      Name this package should be queried for
  `versions`: dict or PckgVer class object
      Dictionary, where the key is a cuda version and vale, is the list of versions supported
  `name`: str, optional, default = None
      Name of this package used during installation. If empty it is the same as the key.
      If it includes `{cuda_v}` it is replaced by the cuda_version when queried
  `extra_index`: str, optional, default = ""
      Extra url used as pep 503 compatible repository to obtain listed packages
  `links_index`: str, optional, default = ""
      A URL or path to an html file with direct links to archives
class_docstr_tok: ["Class","describing","a","cuda","package","with","a","key\/name","and","a","dictionary","where","the","key","is","a","cuda","version","and","value","is","the","list","of","versions","supported",".","Parameters","--","--","--","--","--","`","key","`",":","str","Name","this","package","should","be","queried","for","`","versions","`",":","dict","or","PckgVer","class","object","Dictionary",",","where","the","key","is","a","cuda","version","and","vale",",","is","the","list","of","versions","supported","`","name","`",":","str",",","optional",",","default","=","None","Name","of","this","package","used","during","installation",".","If","empty","it","is","the","same","as","the","key",".","If","it","includes","`","{","cuda_v","}","`","it","is","replaced","by","the","cuda_version","when","queried","`","extra_index","`",":","str",",","optional",",","default","=","``","''","Extra","url","used","as","pep","503","compatible","repository","to","obtain","listed","packages","`","links_index","`",":","str",",","optional",",","default","=","``","''","A","URL","or","path","to","an","html","file","with","direct","links","to","archives"]
docstr: Gets a url with direct links to artifacts for pip for given cuda version.
  
  Parameters
  ----------
  `cuda_version`: str
      Cuda version used for this query
docstr_tok: ["Gets","a","url","with","direct","links","to","artifacts","for","pip","for","given","cuda","version",".","Parameters","--","--","--","--","--","`","cuda_version","`",":","str","Cuda","version","used","for","this","query"]
code: def get_links_index(self, cuda_version):
      """Gets a url with direct links to artifacts for pip for given cuda version.
  
      Parameters
      ----------
      `cuda_version`: str
          Cuda version used for this query
      """
      cuda_version = self.max_cuda_version(cuda_version)
      return self.links_index.format(cuda_v=cuda_version)
  
imports: import argparse
  import sys
  from pip._vendor.packaging.version import parse
  import urllib.parse
  from urllib.request import urlopen, HTTPError, Request, URLError
label_desc: Use image node_id 3 for calling the CudaPackageExtraIndex obj's underlying member method code with example usage: obj.get_links_index(cuda_version) and returns: self