def METHOD_NAME(self, *, use_json_output: bool = False, **kwargs):
    """List all tasks in either basic or JSON format."""
    results = self.client.tasks.list(return_json=use_json_output, **kwargs)
    if use_json_output:
        print(json.dumps(json.loads(results), indent=2))
    else:
        for r in results:
            print(r.id)