code: def _merge_model_and_aws_config(config, aws_config):
      return {
          **config,
          "model": {
              **config["model"],
              "config": {
                  **config["model"].get("config", {}),
                  "aws_config": aws_config,
              },
          },
      }
  
file_path: mlflow/tests/gateway/providers/test_bedrock.py
imports: from unittest import mock
  import pytest
  from fastapi.encoders import jsonable_encoder
  from mlflow.gateway.config import AWSBaseConfig, AWSBedrockConfig, AWSIdAndKey, AWSRole, RouteConfig
  from mlflow.gateway.providers.bedrock import AWSBedrockModelProvider, AWSBedrockProvider
  from mlflow.gateway.schemas import completions
  from tests.gateway.providers.test_anthropic import completions_response
  from tests.gateway.providers.test_anthropic import parsed_completions_response
  from tests.gateway.providers.test_cohere import completions_response
label_desc: Use image node_id 3 for calling a global function with example usage: _merge_model_and_aws_config(config, aws_config) and returns: dict