code: def list_operations(
      *, client=None
  ) -> Iterator[CreateTunedModelOperation]:
      if client is None:
          client = client_lib.get_default_operations_client()
  
      # The client returns an iterator of Operation protos (`Iterator[google.longrunning.operations_pb2.Operation]`)
      # not a gapic Operation object (`google.api_core.operation.Operation`)
      operations = (
          CreateTunedModelOperation.from_proto(op, client)
          for op in client.list_operations(name="", filter_="")
      )
  
      return operations
  
file_path: generative-ai-python/google/generativeai/operations.py
imports: from __future__ import annotations
  import functools
  from typing import Iterator
  from google.ai import generativelanguage
  from google.generativeai import client
  from google.generativeai.types import model_types
  from google.api_core import operation
  import tqdm.auto
label_desc: Use image node_id 1 for calling a global function with example usage: list_operations() and returns: operations