code: def validate_cum_func_with_skipna(skipna, args, kwargs, name):
      """
      If this function is called via the 'numpy' library, the third
      parameter in its signature is 'dtype', which takes either a
      'numpy' dtype or 'None', so check if the 'skipna' parameter is
      a boolean or not
      """
      if not is_bool(skipna):
          args = (skipna,) + args
          skipna = True
  
      validate_cum_func(args, kwargs, fname=name)
      return skipna
  
imports: from numpy import ndarray
  from pandas.compat import OrderedDict
  from pandas.errors import UnsupportedFunctionCall
  from pandas.util._validators import validate_args, validate_args_and_kwargs, validate_kwargs
  from pandas.core.dtypes.common import is_bool, is_integer
label_desc: Use image node_id 6 for calling a global function with example usage: validate_cum_func_with_skipna(skipna, args, kwargs, name) and returns: skipna