input: Write a python function to check if a substring is present in a given string.
  assert check_substring("hello world", "world") == True
  assert check_substring("python programming", "java") == False
  assert check_substring("openai", "open") == True
output: def check_substring(main_string, sub_string):
      return sub_string in main_string