code: def brownian_motion_log_returns(
      params: "ModelParameters",
  ) -> "np.array":
      """Constructs a Wiener process (Brownian Motion).
  
      Parameters
      ----------
      params : `ModelParameters`
          The parameters for the stochastic model.
  
      Returns
      -------
      `np.array`
          Brownian motion log returns.
  
      References
      ----------
      [1] http://en.wikipedia.org/wiki/Wiener_process
      """
      sqrt_delta_sigma = np.sqrt(params.all_delta) * params.all_sigma
      return np.random.normal(
          loc=0, scale=sqrt_delta_sigma, size=params.all_time
      )
  
imports: import numpy
  from tensortrade.stochastic.utils import ModelParameters, convert_to_prices
label_desc: Use image node_id 1 for calling a global function with example usage: brownian_motion_log_returns(params) and returns: np