code: def normalize_language(language):
      for lookup_key in ("alpha_2", "alpha_3"):
          try:
              lang = languages.get(**{lookup_key: language})
              if lang:
                  language = lang.name.lower()
          except KeyError:
              pass
  
      return language
  
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  import sys
  import requests
  import pkgutil
  from functools import wraps
  from contextlib import closing
  from os.path import dirname, abspath, join
  from ._compat import to_string, to_unicode, string_types
  from pycountry import languages
label_desc: Use image node_id 1 for calling a global function with example usage: normalize_language(language) and returns: language