code: def set_current_context(self, name):
          
          if self.context_exists(name):
              self.data['current-context'] = name
          else:
              raise KubeConfError("Context does not exist.")
docs: Set the current context in kubeconfig.