def METHOD_NAME(self, fxt_image_file: Path):
    task = self.client.tasks.create_from_data(
        spec={
            "name": "test_task",
            "labels": [{"name": "car"}, {"name": "person"}],
        },
        resource_type=ResourceType.LOCAL,
        resources=[str(fxt_image_file)],
        data_params={"image_quality": 80},
    )
    return task