code: def _convert_dict(ds):
      if ds is None:
          return ds
      else:
          if isinstance(ds, bytes):
              # If I understand the sqlite doc correctly, this will always be utf8
              ds = ds.decode("utf8")
          return extract_dates(json.loads(ds))
  
imports: import json
  import os
  from datetime import datetime
  from dateutil.parser import parse
  from tornado import ioloop
  from traitlets import Dict, Instance, List, Unicode
  from ..util import ensure_timezone, extract_dates
  from .dictdb import BaseDB
label_desc: Use image node_id 2 for calling a global function with example usage: _convert_dict(ds) and returns: ds, extract_dates