def _validate_metadata(self, metadata):
        try:
            six.iteritems(metadata)
        except AttributeError:
            msg = _("Unable to parse metadata key/value pairs.")
            LOG.debug(msg)
            raise exc.HTTPBadRequest(explanation=msg)
load the assembly stats for meta-velvet
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/legacy_v2/servers.py/Controller._validate_metadata--crossover with--dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_genomeassembly.py/loadMetavelvetRawStats