code: def load_env_directory():
      """Adds environment variables defined in :any:`ENV_DIRECTORY` to os.environ.
      Each file will be added to os.environ via filename = contents.
      Supports bash style comments and variable interpolation.
      """
      for var in glob.glob(os.path.join(ENV_DIRECTORY, "*")):
          if os.path.isfile(var):
              os.environ[os.path.basename(var)] = os.path.expandvars(
                  open(var, encoding="utf-8").read()
              )
  
imports: from __future__ import absolute_import, print_function, unicode_literals
  import glob
  import locale
  import os
  import re
  import socket
  import subprocess
  import sys
  import platform
  from io import open
  import pkg_resources
  from lore import ansi
label_desc: Use image node_id 13 for calling a global function with example usage: load_env_directory() without return types