code: def random_shape(dim, min_elem=1, max_elem=10):
      return tuple(
          random.randint(min_elem, max_elem) for _ in range(dim)
      )
  
file_path: kornia/test/enhance/test_core.py
imports: import random
  import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia
  import kornia.testing
  from kornia.core import Tensor
  from kornia.testing import assert_close
label_desc: Use image node_id 1 for calling a global function with example usage: random_shape(dim, min_elem, max_elem) and returns: tuple