def METHOD_NAME():
    new_e2e_metadata = deepcopy(E2E_METADATA)
    with TempDir('snmp') as tmp_dir:
        data_dir = os.path.join(tmp_dir, 'data')
        env = {'DATA_DIR': data_dir}
        if not os.path.exists(data_dir):
            shutil.copytree(os.path.join(COMPOSE_DIR, 'data'), data_dir)
            for data_file in FILES:
                response = requests.get(data_file)
                with open(os.path.join(data_dir, data_file.rsplit('/', 1)[1]), 'wb') as output:
                    output.write(response.content)
        with docker_run(os.path.join(COMPOSE_DIR, 'docker-compose.yaml'), env_vars=env, log_patterns="Listening at"):
            if SNMP_LISTENER_ENV == 'true':
                instance_config = {}
                new_e2e_metadata['docker_volumes'].append(
                    '{}:/etc/datadog-agent/datadog.yaml'.format(create_datadog_conf_file(tmp_dir)),
                )
            else:
                instance_config = generate_container_instance_config([])
                instance_config['init_config'].update(
                    {
                        'loader': 'core',
                        'use_device_id_as_hostname': True,
                        # use hostname as namespace to create different device for each user
                        'namespace': socket.gethostname(),
                    }
                )
            yield instance_config, new_e2e_metadata