code: def lock_exists_in_either_channel_side(
          channel_state: NettingChannelState,
          secrethash: SecretHash,
  ) -> bool:
      
      lock = get_lock(channel_state.our_state, secrethash)
      if not lock:
          lock = get_lock(channel_state.partner_state, secrethash)
      return lock is not None
docs: Check if the lock with `secrethash` exists in either our state or the partner's state