code: def default(self, obj):
      obj_tag = getattr(obj, "json_tag", None)
      if obj_tag is None:
          return super().default(obj)
      obj_tag = TAG_PREFIX + obj_tag
      obj = obj.encode_json_obj()
      return {obj_tag: obj}
  
file_path: nltk/nltk/jsontags.py
imports: import json
label_desc: Use image node_id 1 for calling the JSONTaggedEncoder obj's underlying member method code with example usage: obj.default(obj) and returns: dict, super