code: def validate_map(datum, schema, parent_ns=None, raise_errors=True):
      
      return (
              isinstance(datum, Mapping) and
              all(is_str(k) for k in iterkeys(datum)) and
              all(validate(datum=v, schema=schema['values'],
                           field=parent_ns,
                           raise_errors=raise_errors) for v in itervalues(datum))
      )
docs: Check that the data is a Map(k,v)
      matching values to schema['values'] type.
  
      Parameters
      ----------
      datum: Any
          Data being validated
      schema: dict
          Schema
      parent_ns: str
          parent namespace
      raise_errors: bool
          If true, raises ValidationError on invalid data