code: def base36encode(value: bytes) -> str:
      output = []
      n = len(value) * math.ceil(
          math.log(8) / math.log(len(base36chars))
      )
      value = int.from_bytes(value, "little", signed=False)
      for _ in range(n):
          value, rem = divmod(value, len(base36chars))
          output.append(base36chars[rem])
      return "".join(reversed(output))
  
imports: import hashlib
  import math
  import string
  from typing import BinaryIO
label_desc: Use image node_id 2 for calling a global function with example usage: base36encode(value) and returns: str