code: def var_constraints(pattern):
      return pattern.conv.weight.val is not None
  
imports: import os
  import numpy
  from coremltools.converters.mil import Builder
  from coremltools.converters.mil.experimental.passes.generic_pass_infrastructure import register_generic_pass
label_desc: Use image node_id 1 for calling a global function with example usage: var_constraints(pattern) and returns: unknown