original_docstring: Cycling values for CUDA_VISIBLE_DEVICES environment variable
  
      Examples
      --------
      >>> cuda_visible_devices(0, range(4))
      '0,1,2,3'
      >>> cuda_visible_devices(3, range(8))
      '3,4,5,6,7,0,1,2'
      
docstring: Cycling values for CUDA_VISIBLE_DEVICES environment variable
  Examples
  
  
docstring_tokens: Cycling values for CUDA_VISIBLE_DEVICES environment variable Examples
code: def cuda_visible_devices(i, visible=None):
      """Cycling values for CUDA_VISIBLE_DEVICES environment variable
  
      Examples
      --------
      >>> cuda_visible_devices(0, range(4))
      '0,1,2,3'
      >>> cuda_visible_devices(3, range(8))
      '3,4,5,6,7,0,1,2'
      """
      if visible is None:
          try:
              visible = map(
                  parse_cuda_visible_device, os.environ["CUDA_VISIBLE_DEVICES"].split(",")
              )
          except KeyError:
              visible = range(get_n_gpus())
      visible = list(visible)
  
      L = visible[i:] + visible[:i]
      return ",".join(map(str, L))
code_tokens: def cuda_visible_devices ( i , visible = None ) : if visible is None : try : visible = map ( parse_cuda_visible_device , os . environ [ "CUDA_VISIBLE_DEVICES" ] . split ( "," ) ) except KeyError : visible = range ( get_n_gpus ( ) ) visible = list ( visible ) L = visible [ i : ] + visible [ : i ] return "," . join ( map ( str , L ) )
short_docstring: Cycling values for CUDA_VISIBLE_DEVICES environment variable
  Examples
short_docstring_tokens: Cycling values for CUDA_VISIBLE_DEVICES environment variable Examples
comment: """Cycling values for CUDA_VISIBLE_DEVICES environment variable
  
      Examples
      --------
      >>> cuda_visible_devices(0, range(4))
      '0,1,2,3'
      >>> cuda_visible_devices(3, range(8))
      '3,4,5,6,7,0,1,2'
      """