code: def _any_bound_condition_fails_criterion(agent, criterion):
      
      bc_agents = [bc.agent for bc in agent.bound_conditions]
      for b in bc_agents:
          if not criterion(b):
              return True
      return False
docs: Returns True if any bound condition fails to meet the specified
      criterion.
  
      Parameters
      ----------
      agent: Agent
          The agent whose bound conditions we evaluate
      criterion: function
          Evaluates criterion(a) for each a in a bound condition and returns True
          if any agents fail to meet the criterion.
  
      Returns
      -------
      any_meets: bool
          True if and only if any of the agents in a bound condition fail to match
          the specified criteria