code: def brownian_interval_like(
      y: Tensor,
      t0: Optional[Scalar] = 0.0,
      t1: Optional[Scalar] = 1.0,
      size: Optional[Tuple[int, ...]] = None,
      dtype: Optional[torch.dtype] = None,
      device: Optional[Union[str, torch.device]] = None,
      **kwargs,
  ):
      """Returns a BrownianInterval object with the same size, device, and dtype as a given tensor."""
      size = y.shape if size is None else size
      dtype = y.dtype if dtype is None else dtype
      device = y.device if device is None else device
      return brownian_interval.BrownianInterval(
          t0=t0, t1=t1, size=size, dtype=dtype, device=device, **kwargs
      )
  
imports: import torch
  from .None import brownian_base
  from .None import brownian_interval
  from ..types import Optional, Scalar, Tensor, Tuple, Union
label_desc: Use image node_id 1 for calling a global function with example usage: brownian_interval_like(y, t0, t1, size, dtype, device) and returns: brownian_interval