code: def dispatch_map(self, rep, as_map_key, cache):
          
          if self.are_stringable_keys(rep):
              return self.emit_map(rep, as_map_key, cache)
          return self.emit_cmap(rep, as_map_key, cache)
docs: Used to determine and dipatch the writing of a map - a simple
          map with strings as keys, or a complex map, whose keys are also
          compound types.