code: def rand_laplace(
      mu: Union[float, Column],
      beta: Union[float, Column],
      seed: Optional[int] = None,
  ) -> Column:
      """Generate random numbers from Laplace(mu, beta).
  
      :param mu: mu parameter of Laplace distribution
      :param beta: beta parameter of Laplace distribution
      :param seed: random seed value (optional, default None)
      :returns: column with random numbers
      """
      if not isinstance(mu, Column):
          mu = F.lit(mu)
  
      if not isinstance(beta, Column):
          beta = F.lit(beta)
  
      u = F.rand(seed)
  
      return (
          F.when(u < F.lit(0.5), mu + beta * F.log(2 * u))
          .otherwise(mu - beta * F.log(2 * (1 - u)))
          .alias("laplace_random")
      )
  
imports: from __future__ import annotations
  from typing import Optional, Union
  from pyspark.sql import Column
  from pyspark.sql import functions
label_desc: Use image node_id 1 for calling a global function with example usage: rand_laplace(mu, beta, seed) and returns: F