class_docstr: Perform body repeatly while the condition cond is true.
  
  Parameters
  ----------
  _cond: Python function  (Required)
      * A Python function that takes ``loop_vars`` as positional arguments. The function must return a bool Var.
  
  _body: Python function  (Required)
      * A Python function that takes ``loop_vars`` as positional arguments. The function must return the same number of output vars as ``loop_var`` with the same types.
  
  loop_vars: Python tuple (Required)
      * Python tuple of ``Variables``.
  
  Returns
  -------
  Python tuple
      * Same type as ``loop_vars``
class_docstr_tok: ["Perform","body","repeatly","while","the","condition","cond","is","true",".","Parameters","--","--","--","--","--","_cond",":","Python","function","(","Required",")","*","A","Python","function","that","takes","``","loop_vars","``","as","positional","arguments",".","The","function","must","return","a","bool","Var",".","_body",":","Python","function","(","Required",")","*","A","Python","function","that","takes","``","loop_vars","``","as","positional","arguments",".","The","function","must","return","the","same","number","of","output","vars","as","``","loop_var","``","with","the","same","types",".","loop_vars",":","Python","tuple","(","Required",")","*","Python","tuple","of","``","Variables","``",".","Returns","--","--","--","-","Python","tuple","*","Same","type","as","``","loop_vars","``"]
code: def _check_equal_value(val1, val2):
      if val1 is None and val2 is None:
          return True
      if val1 is None or val2 is None:
          return False
      if isinstance(val1, np.ndarray) and isinstance(val2, np.ndarray):
          return np.array_equal(val1, val2)
      return val1 == val2
  
imports: import six
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.types.type_mapping import numpy_val_to_builtin_val, is_subtype
  import copy
  from coremltools.converters.mil.mil import Block, SYMBOL, NONE
  from coremltools.converters.mil.mil.var import Var
  from coremltools.converters.mil.mil import get_new_symbol
  from ._op_reqs import *
  import logging
label_desc: Use image node_id 3 for calling the while_loop obj's underlying member method code with example usage: obj._check_equal_value(val1, val2) and returns: unknown, True, False, np