code: def is_basestring(value):
      """
      Checks if value is string in both Python2.7 and Python3+
      """
      return isinstance(value, (type(""), str))
  
file_path: luminoth/luminoth/utils/config.py
imports: import inspect
  import os.path
  import tensorflow
  import yaml
  from easydict import EasyDict
  from luminoth.models import get_model
label_desc: Use image node_id 6 for calling a global function with example usage: is_basestring(value) and returns: isinstance