code: def _pip_safe_ssl(cmds, anaconda_dir):
      
      try:
          for cmd in cmds:
              subprocess.check_call(cmd)
      except subprocess.CalledProcessError:
          _set_pip_ssl(anaconda_dir)
          for cmd in cmds:
              subprocess.check_call(cmd)
docs: Run pip, retrying with conda SSL certificate if global certificate fails.