def METHOD_NAME(tp0: TargetPoint, tp1: TargetPoint) -> bool:
    return (
        isinstance(tp0, TFLayerPoint)
        and isinstance(tp1, TFLayerPoint)
        and tp0.type in GRAPH_NODE_TYPES
        and tp1.type in GRAPH_NODE_TYPES
        and tp0.layer_name == tp1.layer_name
    )