code: def check_kubernetes_config(ctx):
      from kubernetes import config
  
      try:
          (
              all_contexts,
              current_context,
          ) = config.list_kube_config_contexts()
          click.confirm(
              "You have a valid kubernetes configuration. The current context is set to "
              + yellow(current_context["name"])
              + " "
              + "Proceed?",
              default=True,
              abort=True,
          )
      except config.config_exception.ConfigException as e:
          click.confirm(
              "\nYou don't seem to have a valid Kubernetes configuration file. "
              + "The error from Kubernetes client library: "
              + red(str(e))
              + "."
              + "To create a kubernetes configuration for EKS, you typically need to run "
              + yellow(
                  "aws eks update-kubeconfig --name <CLUSTER NAME>"
              )
              + ". For further details, refer to AWS documentation at https://docs.aws.amazon.com/eks/latest/userguide/create-kubeconfig.html\n"
              "Do you want to proceed with configuring Metaflow for Kubernetes anyway?",
              default=False,
              abort=True,
          )
  
imports: import json
  import os
  import sys
  from os.path import expanduser
  from metaflow.util import to_unicode
  from metaflow._vendor import click
  from metaflow.util import to_unicode
  from .util import echo_always, makedirs
label_desc: Use image node_id 25 for calling a global function with example usage: check_kubernetes_config(ctx) without return types