code: def from_yaml(s):
      """Allows to deserialize transforms from a yaml file.
  
      Parameters
      ----------
      s : str or pathlib.Path
          Path to the yaml object.
  
      Returns
      -------
      s : Serializable
          A serializable object
  
      """
      s = str(s)
      if s.endswith(".yaml"):
          with open(s, "r") as f:
              d = yaml.safe_load(f.read())
      else:
          d = yaml.safe_load(s)
  
      return from_dict(d)
  
file_path: solt/solt/utils/_utils.py
imports: from functools import wraps
  import json
  import yaml
  import inspect
label_desc: Use image node_id 3 for calling a global function with example usage: from_yaml(s) and returns: from_dict