from mock import create_autospec
from celery import task

@task
def function(a, b, c):
    pass
mock_function = create_autospec(function)
mock_function.run('wrong arguments')
How can i autospec a mocked Celery function