input: Write a python function to check if a substring exists within a main string.
  assert check_substring('hello world', 'world') == True
  assert check_substring('python programming', 'code') == False
  assert check_substring('openai', 'ai') == True
output: def check_substring(main_string, substring):
      return substring in main_string