code: def _get_env(self, env_var):
          
          value = os.environ.get(env_var)
          if not value:
              raise ValueError('Missing environment variable:%s' % env_var)
          return value
docs: Helper to read an environment variable