code: def all_reach_leaf(pos: np.array):
      if isinstance(pos, list):
          pos = np.array(pos)
      return np.all(pos < 0)
  
file_path: FATE/python/fate/ml/ensemble/algo/secureboost/common/predict.py
imports: import pandas
  import numpy
  from typing import List
  from fate.arch import Context
  from fate.arch.dataframe import DataFrame
  import copy
  from fate.ml.ensemble.learner.decision_tree.tree_core.decision_tree import DecisionTree, _make_decision, Node
  import functools
  from logging import getLogger
label_desc: Use image node_id 2 for calling a global function with example usage: all_reach_leaf(pos) and returns: np