def METHOD_NAME(mock, settings):
    create_instance(mock, settings, None, *args, **kwargs)
    if hasattr(mock, "from_crawler"):
        self.assertEqual(mock.from_crawler.call_count, 0)
    if hasattr(mock, "from_settings"):
        mock.from_settings.assert_called_once_with(settings, *args, **kwargs)
        self.assertEqual(mock.call_count, 0)
    else:
        mock.assert_called_once_with(*args, **kwargs)