code: def offset_to_row(offset, ncols):
      return int(offset / ncols)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import re
  from collections import deque
  from enum import Enum
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: offset_to_row(offset, ncols) and returns: int