code: def _cdivide(x, n, type=list):
      """elementwise casting division of x by n, as if x were an array"""
      if type is list or type is None:
          return _divide(x, n)
      if type is iter:
          return _idivide(x, n)
      if type.__name__ == "array":
          return _adivide(x, n)
      return type(_divide(x, n))
  
imports: from functools import reduce
  from collections.abc import Callable
  from mystic._counter import Counter
  from itertools import permutations
  from dill.source import getblocks
  from dill.source import getsource
  from mystic.monitors import Monitor
  from mystic.monitors import VerboseMonitor
  from mystic.monitors import LoggingMonitor
  from mystic.monitors import CustomMonitor
  from mystic.monitors import Null
label_desc: Use image node_id 7 for calling a global function with example usage: _cdivide(x, n, type) and returns: type, _divide, _idivide, _adivide