code: def maybe_convert2json(self, origin_data_dir):
      out_dir = os.path.join(self.data_dir, "convert_data.json")
      if not self.check_file([out_dir]):
          print("Converting data to json...")
          self.convert2json(origin_data_dir, out_dir)
      return out_dir
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import shutil
  import sys
  import tf_euler
  from euler.tools.generate_euler_data import EulerGenerator
label_desc: Use image node_id 6 for calling the DataSet obj's underlying member method code with example usage: obj.maybe_convert2json(origin_data_dir) and returns: out_dir