code: def unicode_to_str(data):
      """Unicode to string conversion."""
      if not isinstance(data, str):
          return data.encode("utf-8")
      return data
  
file_path: dragonfly/dragonfly/parse/config_parser.py
imports: from __future__ import absolute_import
  import sys
  import json
  from collections import OrderedDict
  from numbers import Number
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: unicode_to_str(data) and returns: data, data