code: def gate(self, gate, ID=None, apply_now=True):
          '''
          Applies the gate to each Measurement in the Collection, returning a new Collection with gated data.
  
          {_containers_held_in_memory_warning}
  
          Parameters
          ----------
          gate : {_gate_available_classes}
  
          ID : [ str, numeric, None]
              New ID to be given to the output. If None, the ID of the current collection will be used.
          '''
  
          def func(well):
              return well.gate(gate, apply_now=apply_now)
  
          return self.apply(func, output_format='collection', ID=IDf gate(self, gate, ID=None, apply_now=True):
          '''
          Applies the gate to each Measurement in the Collection, returning a new Collection with gated data.
  
          {_containers_held_in_memory_warning}
  
          Parameters
          ----------
          gate : {_gate_available_classes}
  
          ID : [ str, numeric, None]
              New ID to be given to the output. If None, the ID of the current collection will be used.
          '''
  
          def func(well):
              return well.gate(gate, apply_now=apply_now)
  
          return self.apply(func, output_format='collection', ID=ID)
docs: Applies the gate to each Measurement in the Collection, returning a new Collection with gated data.
  
          {_containers_held_in_memory_warning}
  
          Parameters
          ----------
          gate : {_gate_available_classes}
  
          ID : [ str, numeric, None]
              New ID to be given to the output. If None, the ID of the current collection will be used.