code: def _scan(
      input_dataset,
      initial_state,
      scan_func,
      use_default_device=None,
      name=None,
  ):
      return _ScanDataset(
          input_dataset,
          initial_state,
          scan_func,
          use_default_device,
          name=name,
      )
  
file_path: tensorflow-upstream/tensorflow/python/data/ops/scan_op.py
imports: from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import structured_function
  from tensorflow.python.data.util import nest
  from tensorflow.python.data.util import structure
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import gen_experimental_dataset_ops
  from tensorflow.python.util.compat import collections_abc
label_desc: Use image node_id 1 for calling a global function with example usage: _scan(input_dataset, initial_state, scan_func, use_default_device, name) and returns: _ScanDataset