input: Write a function to randomly select k elements from an array using the `random.sample` method.
  assert len(select_random_elements([11, 22, 7, 12, 3, 8], 3)) == 3
  assert set(select_random_elements([11, 22, 7, 12, 3, 8], 3)).issubset({11, 22, 7, 12, 3, 8})
  assert len(select_random_elements([1, 2, 3, 4, 5], 2)) == 2
output: import random
  
  def select_random_elements(arr, k):
      return random.sample(arr, k)