def METHOD_NAME(
    system: "openmm.System",
    box_vectors: Optional["openmm.unit.Quantity"],
    positions: "openmm.unit.Quantity",
    round_positions: Optional[int],
    platform: str,
) -> dict[int, "openmm.unit.Quantity"]:
    """Given prepared `openmm` objects, run a single-point energy calculation."""
    for index, force in enumerate(system.getForces()):
        force.setForceGroup(index)
    integrator = openmm.VerletIntegrator(1.0 * openmm.unit.femtoseconds)
    context = openmm.Context(
        system,
        integrator,
        openmm.Platform.getPlatformByName(platform),
    )
    if box_vectors is not None:
        context.setPeriodicBoxVectors(*box_vectors)
    context.setPositions(
        numpy.round(positions, round_positions)
        if round_positions is not None
        else positions,
    )
    raw_energies: dict[int, openmm.unit.Quantity] = dict()
    for index in range(system.getNumForces()):
        state = context.getState(getEnergy=True, groups={index})
        raw_energies[index] = state.getPotentialEnergy()
        del state
    del context
    del integrator
    return raw_energies