def METHOD_NAME(
        platf_cfg: str,
        qubit_idx: int,
) -> OqlProgram:
    """
    Args:
        platf_cfg:
        qubit_idx:
    Returns:
    """
    name = f'active_reset_{qubit_idx}'
    src = f"""
        # Note:         file generated by {__file__}::active_reset
        # File:         {name}.cq
        # Purpose:      test Active Reset
        version 1.2
        pragma @ql.name("{name}")  # set the name of generated files
        .def
        map qubit = q[{qubit_idx}]
        .init
    """
    p = OqlProgram(name, platf_cfg)  # NB: name must be identical to name set by "pragma @ql.name" above
    p.compile_cqasm(src)
    return p