code: def md5_sha_from_str(val: str) -> str:
      return hashlib.md5(val.encode("utf-8")).hexdigest()
  
imports: import hashlib
  from typing import Any, Callable, Optional
  import simplejson
label_desc: Use image node_id 1 for calling a global function with example usage: md5_sha_from_str(val) and returns: hashlib