code: def getfqdn(name=""):
      """
      Get fully qualified domain name from name.
  
      An empty argument is interpreted as meaning the local host.
      """
      name = name.strip()
      if not name or name == "0.0.0.0":
          name = socket.gethostname()
      try:
          addrs = socket.getaddrinfo(
              name, None, 0, socket.SOCK_DGRAM, 0, socket.AI_CANONNAME
          )
      except OSError:
          pass
      else:
          for addr in addrs:
              if addr[3]:
                  name = addr[3]
                  break
      return name
  
imports: from __future__ import annotations
  import socket
  from functools import lru_cache
  from airflow.configuration import conf
label_desc: Use image node_id 1 for calling a global function with example usage: getfqdn(name) and returns: name