code: def get_size(fileobj):
      
  
      old_pos = fileobj.tell()
      try:
          fileobj.seek(0, 2)
          return fileobj.tell()
      finally:
          fileobj.seek(old_pos, 0)
docs: Returns the size of the file.
      The position when passed in will be preserved if no error occurs.
  
      Args:
          fileobj (fileobj)
      Returns:
          int: The size of the file
      Raises:
          IOError