input: Write a function to print a random element from a given list of fruits. The function should accept a list as an input and output a random element from that list. If the list is empty, it should print "No fruits to choose from".
  assert random_fruit(["apple", "banana", "mango", "pear", "grape"])
  assert random_fruit(["apple", "banana"])
  assert random_fruit([])
  
  Output should display a random fruit if the list is not empty. If the list is empty, it should print "No fruits to choose from".
output: import random
  
  def random_fruit(fruits):
      if not fruits:
          print("No fruits to choose from")
      else:
          print(random.choice(fruits))