def METHOD_NAME():
    class ChildSection(MSection):
        pass
    class EntryArchive(MSection):
        child = SubSection(sub_section=ChildSection.m_def)
    pkg = Package()
    pkg.section_definitions.append(ChildSection.m_def)
    pkg.section_definitions.append(EntryArchive.m_def)
    pkg.__init_metainfo__()
    assert SubSection._used_sections[ChildSection.m_def] == [EntryArchive.child]
    assert ChildSection.m_def.path == 'child'
    from nomad.datamodel.metainfo.simulation.calculation import Calculation, Energy
    from nomad.datamodel.metainfo.simulation.system import System
    from nomad.datamodel import EntryArchive  # pylint: disable=unused-import
    assert Calculation.m_def.path == 'run.calculation'
    assert System.m_def.path == 'run.system'
    assert Energy.m_def.path == '__no_archive_path__'