code: def git_like_hash_with_size(filepath):
      """
      Calculate git like hash for path
      """
      sha = hashlib.sha1()
  
      file_size = 0
  
      with open(filepath, "rb") as f:
          while True:
              block = f.read(2**16)
  
              if not block:
                  break
  
              file_size += len(block)
              sha.update(block)
  
      sha.update("\0")
      sha.update(str(file_size))
  
      return sha.hexdigest(), file_size
  
imports: import datetime
  import errno
  import hashlib
  import json
  import logging
  import os
  import platform
  import random
  import shutil
  import socket
  import string
  import sys
  import tarfile
  import urllib2
  import retry
label_desc: Use image node_id 12 for calling a global function with example usage: git_like_hash_with_size(filepath) and returns: sha,  file_size