code: def get_context(self, name):
          
          contexts = self.data['contexts']
          for context in contexts:
              if context['name'] == name:
                  return context
          raise KubeConfError("context name not found.")
docs: Get context from kubeconfig.