def self.define_nested_shared_group_method(new_name, report_label=nil)
module_eval("def self.\#{new_name}(name, *args, &customization_block)\nshared_block = world.shared_example_groups[name]\nraise \"Could not find shared example group named \\\#{name.inspect}\" unless shared_block\n\ngroup = describe(\"\#{report_label || \"it should behave like\"} \\\#{name}\") do\nmodule_eval_with_args(*args, &shared_block)\nmodule_eval(&customization_block) if customization_block\nend\ngroup.metadata[:shared_group_name] = name\ngroup\nend\n", __FILE__, __LINE__)
end