code: def test_many_objects():
      """Regression test for IMG-775"""
      numpy.random.seed(22)
      image = numpy.random.uniform(size=(100, 100))
      i, j = numpy.mgrid[0:100, 0:100]
      labels = (i / 10).astype(int) + (j / 10).astype(int) * 10 + 1
      workspace, module = make_workspace(image, labels)
      assert isinstance(
          module, cellprofiler.modules.measuretexture.MeasureTexture
      )
      module.scale_groups[0].scale.value = 2
      module.run(workspace)
      m = workspace.measurements
      all_measurements = module.get_measurements(
          workspace.pipeline,
          INPUT_OBJECTS_NAME,
          cellprofiler.modules.measuretexture.TEXTURE,
      )
      all_columns = module.get_measurement_columns(workspace.pipeline)
      assert all(
          [
              oname in (INPUT_OBJECTS_NAME, "Image")
              for oname, feature, coltype in all_columns
          ]
      )
      all_column_features = [
          feature
          for oname, feature, coltype in all_columns
          if oname == INPUT_OBJECTS_NAME
      ]
      assert all(
          [
              any(
                  [
                      oname == "Image" and feature == afeature
                      for oname, feature, coltype in all_columns
                  ]
              )
              for afeature in all_column_features
          ]
      )
      for measurement in cellprofiler.modules.measuretexture.F_HARALICK:
          assert measurement in all_measurements
          assert INPUT_IMAGE_NAME in module.get_measurement_images(
              workspace.pipeline,
              INPUT_OBJECTS_NAME,
              cellprofiler.modules.measuretexture.TEXTURE,
              measurement,
          )
          all_scales = module.get_measurement_scales(
              workspace.pipeline,
              INPUT_OBJECTS_NAME,
              cellprofiler.modules.measuretexture.TEXTURE,
              measurement,
              INPUT_IMAGE_NAME,
          )
          for angle in range(4):
              mname = "{}_{}_{}_{:d}_{:02d}_{:d}".format(
                  cellprofiler.modules.measuretexture.TEXTURE,
                  measurement,
                  INPUT_IMAGE_NAME,
                  2,
                  angle,
                  256,
              )
              assert mname in all_column_features
              values = m.get_current_measurement(
                  INPUT_OBJECTS_NAME, mname
              )
              assert numpy.all(values != 0)
              assert (
                  "{:d}_{:02d}_{:d}".format(2, angle, 256) in all_scales
              )
  
imports: import io
  import numpy
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  import cellprofiler.modules.measuretexture
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.workspace
label_desc: Use image node_id 5 for calling a global function with example usage: test_many_objects() without return types