code: def test_if_random_laser_beam_is_in_ranges(
      laser_generator,
      min_laser_beam,
      max_laser_beam,
      less_or_equal,
      art_warning,
  ):
      """
      Test if random laser beam is in defined ranges.
      """
      try:
          for _ in range(100):
              random_laser = laser_generator.random()
              np.testing.assert_array_compare(
                  less_or_equal,
                  random_laser.to_numpy(),
                  max_laser_beam.to_numpy(),
              )
              np.testing.assert_array_compare(
                  less_or_equal,
                  min_laser_beam.to_numpy(),
                  random_laser.to_numpy(),
              )
      except ARTTestException as _e:
          art_warning(_e)
  
imports: from typing import Callable, Tuple, Any
  import numpy
  import pytest
  from art.attacks.evasion.laser_attack.laser_attack import LaserBeam, LaserBeamGenerator, LaserBeamAttack
  from art.attacks.evasion.laser_attack.utils import ImageGenerator
  from tests.utils import ARTTestException
label_desc: Use image node_id 14 for calling a global function with example usage: test_if_random_laser_beam_is_in_ranges(laser_generator, min_laser_beam, max_laser_beam, less_or_equal, art_warning) without return types