def METHOD_NAME(self):
    if self._config.ignition_config_override:
        ignition_config_override = json.dumps(self._config.ignition_config_override)
    else:
        ignition_config_override = None
    infraenv_create_params = dict(
        pull_secret=self._config.pull_secret,
        ssh_public_key=self._config.ssh_public_key,
        openshift_version=self._config.openshift_version,
        cluster_id=self._config.cluster_id,
        static_network_config=self._config.static_network_config,
        ignition_config_override=ignition_config_override,
        proxy=self._config.proxy,
        image_type=self._config.iso_image_type,
    )
    if self._config.kernel_arguments is not None:
        infraenv_create_params["kernel_arguments"] = self._config.kernel_arguments
    if self._config.cpu_architecture:
        infraenv_create_params["cpu_architecture"] = self._config.cpu_architecture
    infra_env = self.api_client.create_infra_env(self._config.entity_name.get(), **infraenv_create_params)
    self._config.infra_env_id = infra_env.id
    return infra_env.id