def METHOD_NAME(self, conf):
    blackhole = None
    if conf:
        distance = search(r"^.*blackhole distance (.\S+)", conf, M)
        bh = conf.find("blackhole")
        if distance is not None:
            blackhole = {}
            value = distance.group(1).strip("'")
            blackhole["distance"] = int(value)
        elif bh:
            blackhole = {}
            blackhole["type"] = "blackhole"
    return blackhole