def METHOD_NAME(self, property_id):
    #i = self.get_property_index_by_property_id(property_id)
    #material_id = self.get_material_id_by_property_index(i)
    #return material_id
    assert nan not in property_id, property_id
    n = len(property_id)
    ptypes = self._get_types(nlimit=True)
    material_id = full(n, nan, dtype='int32')
    upids = unique(property_id)
    for ptype in ptypes:
        for upid in upids:
            if upid in ptype.property_id:
                i = searchsorted(ptype.property_id, upid)
                j = where(upid == property_id)[0]
                material_id[j] = ptype.material_id[i]
                #break
    self.model.log.debug('property_id = %s' % property_id)
    self.model.log.debug('material_id = %s' % material_id)
    assert material_id.shape == (n,), 'material_id.shape=%s; n=%s' % (str(material_id.shape), n)
    return material_id