def METHOD_NAME(self, number_of_snapshots):
    diffr = self.get_object_by_role("diffractometer")
    if self.bl_control.diffractometer.in_plate_mode():
        if number_of_snapshots > 0:
            number_of_snapshots = 1
    # diffr.moveToPhase("Centring", wait=True, timeout=200)
    if number_of_snapshots:
        # put the back light in
        diffr.get_deviceby_role("BackLightSwitch").actuatorIn()
        self.bl_control.diffractometer.take_snapshots(
            number_of_snapshots, wait=True
        )
        diffr._wait_ready(20)