code: def dump(obj, fp, container_count=False, sort_keys=False, no_float32=True, default=None):
      if not callable(fp.write):
          raise TypeError('fp.write not callable')
      fp_write = fp.write
      __encode_value(fp_write, obj, {}, container_count, sort_keys, no_float32, default)