code: def sha1sum(filename):
      """Calculate the sha1sum of a file
      Parameters
      ----------
      filename
          Name of the file
      Returns
      -------
      ret
          The sha1sum
      """
      with open(filename, mode="rb") as f:
          d = hashlib.sha1()
          for buf in iter(functools.partial(f.read, 1024 * 100), b""):
              d.update(buf)
      return d.hexdigest()
  
file_path: autogluon/common/src/autogluon/common/loaders/_utils.py
imports: import functools
  import hashlib
  import logging
  import os
  import sys
  import uuid
  import warnings
  import zipfile
  from typing import Optional
  import boto3
  import numpy
  import requests
  import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: sha1sum(filename) and returns: d