code: def check_non_negative(X, whom):
      """
      Check if there is any negative value in a tensor.
  
      Parameters
      ----------
      X : array-like or sparse matrix
          Input data.
  
      whom : string
          Who passed X to this function.
      """
      return check_non_negative_then_return_value(X, X, whom)
  
imports: import warnings
  import numbers
  import numpy
  from numpy.core.numeric import ComplexWarning
  from ...None import dataframe
  from ...None import tensor
  from ...core import ExecutableTuple
  from ...lib.sparse import issparse
  from ...tensor import Tensor
  from .checks import check_non_negative_then_return_value, assert_all_finite, AssertAllFinite
label_desc: Use image node_id 9 for calling a global function with example usage: check_non_negative(X, whom) and returns: check_non_negative_then_return_value