code: def list_prices(
      self, filter: Optional[str] = None
  ) -> AsyncGenerator[Any, None]:
      # https://docs.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices
      params = {}
      if filter is not None:
          params["$filter"] = filter
      return self._paged_get("/prices", params=params)
  
imports: from typing import Optional, AsyncGenerator, Any
  from .base_client import AzureBaseClient
  from ...common import AnonymousCloudCredentials, Session
label_desc: Use image node_id 2 for calling the AzurePricingClient obj's underlying member method code with example usage: obj.list_prices(filter) and returns: self