code: def eval_str_fn(val):
      if val in {"true", "false"}:
          return val == "true"
      try:
          return ast.literal_eval(val)
      except (ValueError, SyntaxError):
          return val
  
imports: import ast
  import collections
  import copy
  from typing import Any, Dict, Text
  import six
  import tensorflow
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: eval_str_fn(val) and returns: unknown, ast, val