code: def mii_config(
      deployment_type: str,
      port_number: int,
      enable_restful_api: bool,
      restful_api_port: int,
  ):
      config = SimpleNamespace(
          deployment_type=deployment_type,
          port_number=port_number,
          enable_restful_api=enable_restful_api,
          restful_api_port=restful_api_port,
      )
      return config.__dict__
  
imports: import pytest
  import os
  import mii.legacy
  from types import SimpleNamespace
label_desc: Use image node_id 18 for calling a global function with example usage: mii_config(deployment_type, port_number, enable_restful_api, restful_api_port) and returns: config