class_docstr: A class for checking if a CNN satisfies constraints. 
docstr: Checks if the constraints of the child class are satisfied. 
docstr_tok: ["Checks","if","the","constraints","of","the","child","class","are","satisfied","."]
code: def _child_constraints_are_satisfied(self, nn):
      """Checks if the constraints of the child class are satisfied."""
      img_inv_sizes = [
          piis for piis in nn.post_img_inv_sizes if piis != "x"
      ]
      max_post_img_inv_sizes = (
          None
          if self.max_num_2strides is None
          else 2**self.max_num_2strides
      )
      violation = ""
      if not self._check_leq_constraint(
          max(img_inv_sizes), max_post_img_inv_sizes
      ):
          violation = "too_many_2strides"
      return violation
  
imports: import numpy
  from copy import copy
  from ..exd.domains import Domain
label_desc: Use image node_id 2 for calling the CNNConstraintChecker obj's underlying member method code with example usage: obj._child_constraints_are_satisfied(nn) and returns: violation