docstr: Returns a `_JointDistributionNamed` if `model` contains non-CT dists.
docstr_tok: ["Returns","a","`","_JointDistributionNamed","`","if","`","model","`","contains","non-CT","dists","."]
code: def __new__(cls, *args, **kwargs):
      """Returns a `_JointDistributionNamed` if `model` contains non-CT dists."""
      if cls is JointDistributionNamed:
          if args:
              model = args[0]
          else:
              model = kwargs.get("model")
  
          if not all(
              auto_composite_tensor.is_composite_tensor(d)
              or callable(d)
              for d in tf.nest.flatten(model)
          ):
              return _JointDistributionNamed(*args, **kwargs)
      return super(JointDistributionNamed, cls).__new__(cls)
  
imports: import collections
  import functools
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import joint_distribution_sequential
  from tensorflow_probability.python.internal import auto_composite_tensor
  from tensorflow_probability.python.internal import distribution_util
label_desc: Use image node_id 1 for calling the JointDistributionNamed obj's underlying member method code with example usage: obj.__new__(cls) and returns: super, _JointDistributionNamed