code: def pyod(filename):
      """Python implementation of the od UNIX utility (od -b, more exactly).
  
      Parameters
      ----------
      filename : str
          name of the file to get the dump from.
  
      Returns
      -------
      out : seq
          list of lines of od output
  
      Note
      ----
      We only implement enough to get the necessary information for long double
      representation, this is not intended as a compatible replacement for od.
      """
  
      def _pyod2():
          out = []
  
          fid = open(filename, "rb")
          try:
              yo = [
                  int(oct(int(binascii.b2a_hex(o), 16)))
                  for o in fid.read()
              ]
              for i in range(0, len(yo), 16):
                  line = ["%07d" % int(oct(i))]
                  line.extend(["%03d" % c for c in yo[i : i + 16]])
                  out.append(" ".join(line))
              return out
          finally:
              fid.close()
  
      def _pyod3():
          out = []
  
          fid = open(filename, "rb")
          try:
              yo2 = [oct(o)[2:] for o in fid.read()]
              for i in range(0, len(yo2), 16):
                  line = ["%07d" % int(oct(i)[2:])]
                  line.extend(
                      ["%03d" % int(c) for c in yo2[i : i + 16]]
                  )
                  out.append(" ".join(line))
              return out
          finally:
              fid.close()
  
      if sys.version_info[0] < 3:
          return _pyod2()
      else:
          return _pyod3()
  
file_path: catboost/contrib/python/numpy/py2/numpy/core/setup_common.py
imports: from __future__ import division, absolute_import, print_function
  import sys
  import warnings
  import copy
  import binascii
  from numpy.distutils.misc_util import mingw32
label_desc: Use image node_id 8 for calling a global function with example usage: pyod(filename) and returns: _pyod2, _pyod3, out, out