code: def _maybe_str_to_list(list_or_str):
      if is_str(list_or_str):
          return list_or_str.split()
      return list_or_str
  
imports: import collections
  import math
  from texar.tf.utils.dtypes import compat_as_text, is_str
label_desc: Use image node_id 2 for calling a global function with example usage: _maybe_str_to_list(list_or_str) and returns: list_or_str, list_or_str