code: def __init__(self, constraints):
      self.constraints = constraints
      self.batch_constraints = [
          c for c in self.constraints if c.unit.upper() == "BATCH"
      ]
      self.epoch_constraints = [
          c for c in self.constraints if c.unit.upper() == "EPOCH"
      ]
  
imports: from fnmatch import fnmatch
  import torch
  from .callbacks import Callback
label_desc: Use image node_id 1 to create a new ConstraintContainer object  with example: obj = ConstraintContainer(constraints)