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