input: Write a python function to detect objects in an image and check if the detected object belongs to a specified list of object types.
  assert detect_objects('dog_image_path.jpg')=="The detected object is a dog"
  assert detect_objects('cat_image_path.jpg')=="The detected object is a cat"
  assert detect_objects('unknown_image_path.jpg')=="The object is not in the given categories"
output: def detect_objects(image_path):
      # Dummy object detection logic
      detected_objects = {
          'dog_image_path.jpg': 'dog',
          'cat_image_path.jpg': 'cat'
      }
      detected_object = detected_objects.get(image_path, None)
      
      if detected_object:
          return f"The detected object is a {detected_object}"
      else:
          return "The object is not in the given categories"