code: def check_trace(trace):
      """Check the value of trace"""
      if trace is None:
          return 0
      if isinstance(trace, (int, bool)):
          return int(trace)
      # otherwise just be truthy with it
      if trace:
          return 1
      return 0
  
file_path: pmdarima/pmdarima/arima/_validation.py
imports: import numpy
  import warnings
  from sklearn import metrics
  from pmdarima.warnings import ModelFitWarning
label_desc: Use image node_id 7 for calling a global function with example usage: check_trace(trace) and returns: int, int, int, int