code: def load_env_file():
      """Adds environment variables defined in :any:`ENV_FILE` to os.environ.
      Supports bash style comments and variable interpolation.
      """
      if not os.path.exists(ENV_FILE):
          return
  
      for line in open(ENV_FILE, "r"):
          line = line.strip()
          if not line:
              continue
          name, value = line.split("=", 1)
          if (
              not name
              or not value
              or name.startswith("#")
              or len(name) == 0
              or name.isspace()
          ):
              continue
          if re.match(r'^(["\']).*\1$', value):
              if value.startswith('"'):
                  value = os.path.expandvars(value)
              value = value[1:-1]
          os.environ[name] = value
  
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 12 for calling a global function with example usage: load_env_file() without return types