code: def rand(
      *size,
      generator=None,
      out=None,
      dtype=None,
      layout=None,
      device=None,
      requires_grad=False,
      pin_memory=False,
      **kwargs,
  ):
      if not size and "size" not in kwargs:
          raise ValueError(
              "Missing 1 required positional/keyword argument: size"
          )
      size = size if size else kwargs["size"]
      if (
          isinstance(size, (list, tuple))
          and len(size) == 1
          and isinstance(size[0], (list, tuple, ivy.Shape))
      ):
          size = size[0]
      seed = generator.initial_seed() if generator is not None else None
      return ivy.random_uniform(
          shape=size,
          seed=seed,
          out=out,
          dtype=dtype,
          device=device,
      )
  
file_path: ivy/ivy/functional/frontends/torch/random_sampling.py
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 6 for calling a global function with example usage: rand() and returns: ivy