def METHOD_NAME(object_id):
    client = vineyard.connect()
    meta = client.get_meta(object_id)
    if meta.typename == "vineyard::DataFrame" or meta.typename.startswith(
        "vineyard::Tensor"
    ):
        return {repr(object_id): meta.instance_id}
    if (
        meta.typename == "vineyard::GlobalDataFrame"
        or meta.typename == "vineyard::GlobalTensor"
    ):
        mapping = dict()
        for index in range(int(meta['partitions_-size'])):
            item = meta['partitions_-%d' % index]
            mapping[repr(item.id)] = item.instance_id
        return mapping
    raise NotImplementedError("Not implemented: blocks from %s" % meta.typename)