def self.define_nested_shared_group_method(new_name, report_label=nil)
module_eval("def self.\#{new_name}(name, *args, &customization_block)\nshared_block = find_shared(\"examples\", name)\nraise \"Could not find shared examples \\\#{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