code: def constraint_for(kernel_name=None, param=None):
      if param is not None:
          return CONSTRAINTS.get(
              "{}.{}".format(kernel_name, param),
              CONSTRAINTS.get(param, tfp_hps.identity_fn),
          )
      return CONSTRAINTS.get(kernel_name, tfp_hps.identity_fn)
  
imports: import collections
  import contextlib
  import inspect
  import logging
  import re
  import hypothesis
  from hypothesis.extra import numpy
  import hypothesis.strategies
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.distributions import marginal_fns
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import parameter_properties
  from tensorflow_probability.python.internal import tensor_util
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.math import psd_kernels
label_desc: Use image node_id 16 for calling a global function with example usage: constraint_for(kernel_name, param) and returns: CONSTRAINTS, CONSTRAINTS