def METHOD_NAME(mod_monkeypatch, mod_tmp_path):
    """Creates system, site and user configurations.
    * Patches ResourceLocator to use the system and user configs.
    * Unsets ROSE_*CONF_PATH envvars to prevent them effecting tests.
    """
    # unset ROSE_CONF_PATH env vars
    mod_monkeypatch.delenv(ROSE_CONF_PATH, raising=False)
    mod_monkeypatch.delenv(ROSE_SITE_CONF_PATH, raising=False)
    # create system, site and user configurations
    syst = mod_tmp_path / 'syst'
    site = mod_tmp_path / 'site'
    user = mod_tmp_path / 'user'
    syst.mkdir()
    site.mkdir()
    user.mkdir()
    with open(syst / 'rose.conf', 'w+') as conf:
        conf.write(
            dedent(
                '''
        all=syst
        syst=syst
        '''
            )
        )
    with open(site / 'rose.conf', 'w+') as conf:
        conf.write(
            dedent(
                '''
        all=site
        site=site
        '''
            )
        )
    with open(user / 'rose.conf', 'w+') as conf:
        conf.write(
            dedent(
                '''
        all=user
        user=user
        '''
            )
        )
    # patch the ResourceLocator
    mod_monkeypatch.setattr(
        'metomi.rose.resource.ResourceLocator.SYST_CONF_PATH', syst
    )
    mod_monkeypatch.setattr(
        'metomi.rose.resource.ResourceLocator.USER_CONF_PATH', user
    )
    return tuple(map(str, (syst, site, user)))