code: def yaml_dump_multiline_str_as_literal_block(dumper, data):
      if len(data.splitlines()) > 1:
          return dumper.represent_scalar(
              "tag:yaml.org,2002:str", data.lstrip().rstrip(), style="|"
          )
      return dumper.represent_scalar("tag:yaml.org,2002:str", data)
  
imports: import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: yaml_dump_multiline_str_as_literal_block(dumper, data) and returns: dumper, dumper