code: def constraint_for(dist=None, param=None):
      if param is not None:
          return CONSTRAINTS.get(
              "{}.{}".format(dist, param),
              CONSTRAINTS.get(param, tfp_hps.identity_fn),
          )
      return CONSTRAINTS.get(dist, tfp_hps.identity_fn)
  
imports: import collections
  import functools
  import inspect
  from absl import logging
  import hypothesis
  from hypothesis import strategies
  import numpy
  import six
  import tensorflow.compat.v2
  from tensorflow_probability.python import distributions
  from tensorflow_probability.python import util
  from tensorflow_probability.python.bijectors import ascending
  from tensorflow_probability.python.bijectors import hypothesis_testlib
  from tensorflow_probability.python.distributions import distribution
  from tensorflow_probability.python.experimental import distributions
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import tensorshape_util
label_desc: Use image node_id 11 for calling a global function with example usage: constraint_for(dist, param) and returns: CONSTRAINTS, CONSTRAINTS