code: def _pos_array(from_pos, to_pos, step_size):
      # make sure all arguments are type(int)
      from_pos = int(from_pos)
      to_pos = int(to_pos)
      step_size = int(step_size)
      # create range generators
      a = range(from_pos, to_pos, step_size)
      b = range(from_pos + step_size, to_pos, step_size)
      b = chain(b, [to_pos])
      # number of steps
      n_steps = len(a)
      return zip(a, b), n_steps
  
file_path: deepgraph/deepgraph/iterators_and_indexers.py
imports: from datetime import datetime
  from itertools import chain
  import numpy
  import pandas
  from deepgraph._triu_indices import _triu_indices, _union_of_indices, _reduce_triu_indices
  from deepgraph.connector_selector_implementations import _ft_connector, _ft_selector
  from deepgraph.connectors_and_selectors import CreatorFunction, Selector, Connector
  from deepgraph.utils import _flatten, _is_array_like, _merge_dicts
label_desc: Use image node_id 10 for calling a global function with example usage: _pos_array(from_pos, to_pos, step_size) and returns: zip,  n_steps