code: def check(self, value):
      # There must always at least one lineage.
      coal_times = value
      phylogeny = _make_phylogeny(self.leaf_times, coal_times)
      at_least_one_lineage = (phylogeny.lineages > 0).all(dim=-1)
      if not self.ordered:
          return at_least_one_lineage
  
      # Inputs must be ordered.
      ordered = (value[..., :-1] <= value[..., 1:]).all(dim=-1)
      return ordered & at_least_one_lineage
  
imports: import functools
  import weakref
  from collections import namedtuple
  import torch
  from torch.distributions import constraints
  from pyro.distributions.util import broadcast_shape, is_validation_enabled
  from pyro.ops.special import safe_log
  from .torch_distribution import TorchDistribution
label_desc: Use image node_id 2 for calling the CoalescentTimesConstraint obj's underlying member method code with example usage: obj.check(value) and returns: unknown, at_least_one_lineage