def METHOD_NAME(self, entering_hutch, **kwargs):
    logging.info(
        "%s: %s hutch", self.name(), "entering" if entering_hutch else "leaving"
    )
    ctrl_obj = self.get_object_by_role("controller")
    ctrl_obj.hutch_actions(entering_hutch, hutch_trigger=True, **kwargs)
    # open the flexHCD ports
    sample_changer = HWR.beamline.sample_changer
    if sample_changer:
        if entering_hutch:
            sample_changer.prepare_hutch(robot_port=0)
        else:
            sample_changer.prepare_hutch(user_port=0, robot_port=1)