parameters: (self, url, cuda_version)
return_statement: return ""
docstring: Checks if a provided url is available for a given cuda version
  
              It checks what package is available and is compatible with the available platforms
              returned by the pip
  
              Parameters
              ----------
              `url`: str
                  Package url to be tested. `{cuda_v}` is replaced by cuda_version and  `{platform}`
                  by the platform tag
              `cuda_version`: str
                  Cuda version used for this query
docstring_summary: Checks if a provided url is available for a given cuda version
docstring_tokens: Checks if a provided url is available for a given cuda version
function: def get_pyvers_name(self, url, cuda_version):
          """Checks if a provided url is available for a given cuda version
  
              It checks what package is available and is compatible with the available platforms
              returned by the pip
  
              Parameters
              ----------
              `url`: str
                  Package url to be tested. `{cuda_v}` is replaced by cuda_version and  `{platform}`
                  by the platform tag
              `cuda_version`: str
                  Cuda version used for this query
          """
          if isinstance(p.get_supported()[0], tuple):
              # old PIP returns tuple
              for py_ver in [(x, y, z) for (x, y, z) in p.get_supported() if y != 'none' and 'any' not in y]:
                  py_ver = "-".join(py_ver)
                  ret = self.test_request(url.format(platform=py_ver, cuda_v=cuda_version))
                  if ret:
                      return ret
          else:
              # new PIP returns object
              for py_ver in [tag for tag in p.get_supported() if tag.abi != 'none' and tag.platform != 'any']:
                  py_ver = str(py_ver)
                  ret = self.test_request(url.format(platform=py_ver, cuda_v=cuda_version))
                  if ret:
                      return ret
          return ""
function_tokens: def get_pyvers_name ( self , url , cuda_version ) : if isinstance ( p . get_supported ( ) [ 0 ] , tuple ) : # old PIP returns tuple for py_ver in [ ( x , y , z ) for ( x , y , z ) in p . get_supported ( ) if y != 'none' and 'any' not in y ] : py_ver = "-" . join ( py_ver ) ret = self . test_request ( url . format ( platform = py_ver , cuda_v = cuda_version ) ) if ret : return ret else : # new PIP returns object for py_ver in [ tag for tag in p . get_supported ( ) if tag . abi != 'none' and tag . platform != 'any' ] : py_ver = str ( py_ver ) ret = self . test_request ( url . format ( platform = py_ver , cuda_v = cuda_version ) ) if ret : return ret return ""