code: def test_flatten_dict():
      assert dict(
          flatten_dict({"a": 1, "b": {"c": 2, "d": {"e": 3}}})
      ) == {
          "a": 1,
          "b.c": 2,
          "b.d.e": 3,
      }
  
      assert dict(
          flatten_dict(
              {"runners": {"iris_clf": {"nvidia.com/gpu": [0, 1]}}}
          )
      ) == {'runners.iris_clf."nvidia.com/gpu"': [0, 1]}
  
      assert dict(flatten_dict({"a": 1, "b": 2}, sep="_")) == {
          "a": 1,
          "b": 2,
      }
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING
  import pytest
  from bentoml._internal.configuration.helpers import expand_env_var_in_values
  from bentoml._internal.configuration.helpers import flatten_dict
  from bentoml._internal.configuration.helpers import is_valid_ip_address
  from bentoml._internal.configuration.helpers import load_config_file
  from bentoml._internal.configuration.helpers import rename_fields
  from bentoml.exceptions import BentoMLConfigException
label_desc: Use image node_id 1 for calling a global function with example usage: test_flatten_dict() without return types