code: def create_ball_tree(X, leaf_size, metric=None, **metric_params):
      op = _BallTree(
          leaf_size=leaf_size, metric=metric, **metric_params
      )
      return op(X)
  
file_path: mars/mars/learn/neighbors/_ball_tree.py
imports: from ...None import opcodes
  from ...utils import require_not_none
  from .tree import TreeObject, TreeBase, TreeQueryBase
label_desc: Use image node_id 2 for calling a global function with example usage: create_ball_tree(X, leaf_size, metric) and returns: op