code: def test_compute_hit_ratio(self):
      xyz = torch.randn(100, 3)
      xyz_target = xyz.clone()
      xyz[[1, 5, 20, 32, 74, 17, 27, 77, 88, 89]] += 42
  
      hit = compute_hit_ratio(xyz, xyz_target, torch.eye(4), 0.1)
  
      self.assertAlmostEqual(hit.item(), 0.9)
  
imports: import numpy
  import torch
  import unittest
  import numpy.testing
  import os
  import sys
  from torch_points3d.utils.registration import estimate_transfo
  from torch_points3d.utils.registration import fast_global_registration
  from torch_points3d.utils.registration import ransac_registration
  from torch_points3d.metrics.registration_metrics import compute_hit_ratio
  from torch_points3d.metrics.registration_metrics import compute_transfo_error
  from torch_points3d.metrics.registration_metrics import compute_scaled_registration_error
  from torch_points3d.utils.geometry import rodrigues
  from torch_points3d.utils.geometry import euler_angles_to_rotation_matrix
label_desc: Use image node_id 5 for calling the TestRegistrationMetrics obj's underlying member method code with example usage: obj.test_compute_hit_ratio() without return types