input: Write a python function to detect and remove a given pattern in a string.
  assert remove_pattern('I am learning Python programming', 'learning') == 'I am  Python programming'
  assert remove_pattern('Pattern matching is fun', 'matching') == 'Pattern  is fun'
  assert remove_pattern('Hello, World!', 'World') == 'Hello, !'
output: def remove_pattern(text, pattern):
      return text.replace(pattern, '')