class_docstr: Interact with OpenFaaS to query, deploy, invoke and update function.
  
  :param function_name: Name of the function, Defaults to None
  :param conn_id: openfaas connection to use, Defaults to open_faas_default
      for example host : http://openfaas.faas.com, Connection Type : Http
docstr: Whether OpenFaaS function exists or not.
docstr_tok: ["Whether","OpenFaaS","function","exists","or","not","."]
code: def does_function_exist(self) -> bool:
      """Whether OpenFaaS function exists or not."""
      url = (
          self.get_conn().host + self.GET_FUNCTION + self.function_name
      )
  
      response = requests.get(url)
      if response.ok:
          return True
      else:
          self.log.error(
              "Failed to find function %s", self.function_name
          )
          return False
  
file_path: airflow/airflow/providers/openfaas/hooks/openfaas.py
imports: from __future__ import annotations
  from typing import Any
  import requests
  from airflow.exceptions import AirflowException
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 7 for calling the OpenFaasHook obj's underlying member method code with example usage: obj.does_function_exist() and returns: True, False