code: def get_kube_path():
      
      try:
          path = pathlib.Path(os.environ["KUBECONFIG"].split(':')[0])
      except KeyError:
          path = pathlib.Path.home().joinpath('.kube', 'config')
      return path
docs: Get the current config path. If the KUBECONFIG environment 
      parameter is set, use it. If multiple paths are listed in 
      KUBECONFIG, use the first path.