code: def create_line(kp1, kp2, colors=np.array([[0, 0, 0]])):
      line_set = open3d.geometry.LineSet()
      points = [list(kp1), list(kp2)]
  
      lines = [[0, 1]]
      line_set.points = open3d.utility.Vector3dVector(points)
      line_set.lines = open3d.utility.Vector2iVector(lines)
      line_set.colors = open3d.utility.Vector3dVector(colors)
      return line_set
  
imports: import open3d
  import torch
  import numpy
  import hydra
  import logging
  from omegaconf import OmegaConf
  import os
  import sys
  import pandas
  import time
  from torch_points3d.models.model_factory import instantiate_model
  from torch_points3d.datasets.dataset_factory import instantiate_dataset, get_dataset_class
  from torch_points3d.models.base_model import BaseModel
  from torch_points3d.datasets.base_dataset import BaseDataset
  from torch_points3d.utils.registration import estimate_transfo, teaser_pp_registration, fast_global_registration, get_matches
  from torch_points3d.metrics.registration_metrics import compute_hit_ratio, compute_transfo_error, compute_scaled_registration_error
  from torch_points3d.metrics.colored_tqdm import Coloredtqdm
  from torch_points3d.metrics.model_checkpoint import ModelCheckpoint
label_desc: Use image node_id 3 for calling a global function with example usage: create_line(kp1, kp2, colors) and returns: line_set