code: def noise_new(
      dim: int,
      h: float = NOISE_DEFAULT_HURST,
      l: float = NOISE_DEFAULT_LACUNARITY,  # noqa: E741
      random: Optional[tcod.random.Random] = None,
  ) -> tcod.noise.Noise:
      
      return tcod.noise.Noise(dim, hurst=h, lacunarity=l, seed=random)
docs: Return a new Noise instance.
  
      Args:
          dim (int): Number of dimensions.  From 1 to 4.
          h (float): The hurst exponent.  Should be in the 0.0-1.0 range.
          l (float): The noise lacunarity.
          random (Optional[Random]): A Random instance, or None.
  
      Returns:
          Noise: The new Noise instance.