def ConvertToWireFormat(self, value):
    data = value.SerializeToString()
    any_value = AnyValue(type_url=value.__class__.__name__, value=data)
    output = SerializeEntries(any_value.GetRawData().itervalues())

    return (self.encoded_tag, VarintEncode(len(output)), output)
Will return true if a is a subset of b.
dataset/ETHPy150Open google/grr/grr/lib/rdfvalues/structs.py/ProtoDynamicAnyValueEmbedded.ConvertToWireFormat--crossover with--dataset/ETHPy150Open ucrcsedept/galah/galah/shepherd/flockmanager.py/FlockManager.check_environments