def METHOD_NAME(self, function_name, function_arn, role_arn,
                         handler, zip_contents=ANY, error_code=None):
    expected_params = {
        'FunctionName': function_name,
        'Runtime': ANY,
        'Role': role_arn,
        'Handler': handler,
        'Code': {'ZipFile': zip_contents},
        'Description': ANY,
        'Publish': True
    }
    response = {'FunctionArn': function_arn}
    self._stub_bifurcator(
        'create_function', expected_params, response, error_code=error_code)