code: def test_three():
      """Test the angles between three objects"""
      labels = numpy.zeros((10, 10), int)
      labels[2, 2] = 1  # x=3,y=4,5 triangle
      labels[2, 5] = 2
      labels[6, 2] = 3
      workspace, module = make_workspace(
          labels,
          cellprofiler.modules.measureobjectneighbors.D_WITHIN,
          5,
      )
      module.run(workspace)
      m = workspace.measurements
      fo = m.get_current_measurement(
          OBJECTS_NAME, "Neighbors_FirstClosestObjectNumber_5"
      )
      assert len(fo) == 3
      assert fo[0] == 2
      assert fo[1] == 1
      assert fo[2] == 1
      so = m.get_current_measurement(
          OBJECTS_NAME, "Neighbors_SecondClosestObjectNumber_5"
      )
      assert len(so) == 3
      assert so[0] == 3
      assert so[1] == 3
      assert so[2] == 2
      d = m.get_current_measurement(
          OBJECTS_NAME, "Neighbors_SecondClosestDistance_5"
      )
      assert len(d) == 3
      assert round(abs(d[0] - 4), 7) == 0
      assert round(abs(d[1] - 5), 7) == 0
      assert round(abs(d[2] - 5), 7) == 0
  
      angle = m.get_current_measurement(
          OBJECTS_NAME, "Neighbors_AngleBetweenNeighbors_5"
      )
      assert len(angle) == 3
      assert round(abs(angle[0] - 90), 7) == 0
      assert (
          round(
              abs(
                  angle[1] - numpy.arccos(3.0 / 5.0) * 180.0 / numpy.pi
              ),
              7,
          )
          == 0
      )
      assert (
          round(
              abs(
                  angle[2] - numpy.arccos(4.0 / 5.0) * 180.0 / numpy.pi
              ),
              7,
          )
          == 0
      )
  
imports: import numpy
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import COLTYPE_INTEGER, COLTYPE_FLOAT, NEIGHBORS, R_FIRST_OBJECT_NUMBER, R_SECOND_OBJECT_NUMBER
  from cellprofiler_core.measurement import RelationshipKey
  import cellprofiler.modules.measureobjectneighbors
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 10 for calling a global function with example usage: test_three() without return types