input: Write a function to determine if two given strings are anagrams. If the strings are anagrams, return True; otherwise, return False. If either of the strings is empty, return False.
  def is_anagram(str1, str2):
      if not str1 or not str2:
          return False
      if len(str1) != len(str2):
          return False
      return sorted(str1) == sorted(str2)
  
  assert is_anagram("abcd", "cbda")==True
  assert is_anagram("listen", "silent")==True
  assert is_anagram("hello", "world")==False
  assert is_anagram("", "nonempty")==False
  assert is_anagram("nonempty", "")==False
output: def is_anagram(str1, str2):
      if not str1 or not str2:
          return False
      if len(str1) != len(str2):
          return False
      return sorted(str1) == sorted(str2)