<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_check(self, func, *, call_once=False):
 """Removes a global check from the bot. This function is idempotent and will not raise an exception if the function is not in the global checks. Parameters func The function to remove from the global checks. call_once: :class:`bool` If the function was added with ``call_once=True`` in the :meth:`.Bot.add_check` call or using :meth:`.check_once`. """

        l = self._check_once if call_once else self._checks

        try:
            l.remove(func)
        except ValueError:
            pass