code: def yule(x, y):
      num_true_true = 0.0
      num_true_false = 0.0
      num_false_true = 0.0
      for i in range(x.shape[0]):
          x_true = x[i] != 0
          y_true = y[i] != 0
          num_true_true += x_true and y_true
          num_true_false += x_true and (not y_true)
          num_false_true += (not x_true) and y_true
  
      num_false_false = (
          x.shape[0] - num_true_true - num_true_false - num_false_true
      )
  
      if num_true_false == 0.0 or num_false_true == 0.0:
          return 0.0
      else:
          return (2.0 * num_true_false * num_false_true) / (
              num_true_true * num_false_false
              + num_true_false * num_false_true
          )
  
imports: import numpy
  import numba
  from pynndescent.optimal_transport import allocate_graph_structures, initialize_graph_structures, initialize_supply, initialize_cost, network_simplex_core, total_cost, ProblemStatus, sinkhorn_transport_plan
label_desc: Use image node_id 23 for calling a global function with example usage: yule(x, y) and returns: int, unknown