code: def print_yaml(y, indent_level=0):
      if isinstance(y, list):
          for i, v in enumerate(y):
              print(ils(indent_level) + "- %d" % i)
              print_yaml(v, indent_level + 1)
      elif isinstance(y, OrderedDict):
          for k, v in y.items():
              print(ils(indent_level) + k + ":")
              print_yaml(v, indent_level + 1)
      elif isinstance(y, str):
          print(
              ils(indent_level)
              + y.replace("\n", "\n" + ils(indent_level))
          )
      else:
          print(ils(indent_level) + str(y))
  
imports: from __future__ import print_function
  import yaml
  from collections import OrderedDict
label_desc: Use image node_id 3 for calling a global function with example usage: print_yaml(y, indent_level) without return types