def _get_config_context_for_resource(
        self, environment, resource_type, name, scaling_index=0,
    ):
        context = {
            'environment': {},
            'seed_environment': {},
        }
        context['environment']['name'] = environment
        context['environment']['constants'] = self._get_environment_constants(
            environment,
        )
        context['environment']['secrets'] = self._get_environment_secrets(
            environment,
        )

        seed_env = context['seed_environment']
        seed_env_name = self.get_seed_environment_name(
            environment,
        )
        if not seed_env_name:
            seed_env['name'] = ''
            seed_env['constants'] = InfiniteEmptyStringDict()
            seed_env['secrets'] = InfiniteEmptyStringDict()
        else:
            seed_env['name'] = seed_env_name
            seed_env['constants'] = self._get_seed_environment_constants(
                environment,
            )
            seed_env['secrets'] = self._get_seed_environment_secrets(
                environment,
            )

        context['node'] = self._get_resource_context(
            environment,
            resource_type,
            name,
            scaling_index,
        )
        context['seed_node'] = self._get_seed_node_context(
            environment,
            resource_type,
            name,
            scaling_index,
        )
        return context
Hessian matrix computed by second-order complex-step differentiation
dataset/ETHPy150Open winhamwr/neckbeard/neckbeard/configuration.py/ConfigurationManager._get_config_context_for_resource--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/statespace/mlemodel.py/MLEModel._hessian_complex_step