code: def get_remaining_size(fd):
      try:
          fn = fd.fileno()
      except AttributeError:
          return os.path.getsize(fd.name) - fd.tell()
      st = os.fstat(fn)
      size = st.st_size - fd.tell()
      return size
  
imports: from __future__ import division, absolute_import, print_function
  import sys
  import os
  import warnings
  from .None import numeric
  from .None import numerictypes
  from numpy.compat import isfileobj, bytes, long, unicode, os_fspath
  from numpy.core.overrides import set_module
  from .arrayprint import get_printoptions
label_desc: Use image node_id 5 for calling a global function with example usage: get_remaining_size(fd) and returns: size, unknown