code: def hashstr(s: str) -> str:
      """
      Encodes the string into hashed format - hexadecimal digits.
  
      Parameters
      ----------
      s : str
      """
      return str(hashlib.blake2s(str.encode(s)).hexdigest())
  
imports: import hashlib
  import xitorch
  from dataclasses import dataclass
  from abc import abstractmethod, abstractproperty
  from typing import Union, List, TypeVar, Generic, Callable
label_desc: Use image node_id 1 for calling a global function with example usage: hashstr(s) and returns: str