code: def set_retention(
      self,
      tenant: str,
      namespace: str,
      retention_time_in_minutes: int = 0,
      retention_size_in_MB: int = 0,
  ):
      session = self._create_session()
  
      data = {
          "retentionTimeInMinutes": retention_time_in_minutes,
          "retentionSizeInMB": retention_size_in_MB,
      }
  
      response = session.post(
          self.service_url
          + "namespaces/{}/{}/retention".format(tenant, namespace),
          data=json.dumps(data),
      )
      return response
  
imports: import json
  import logging
  import requests
  from requests.adapters import HTTPAdapter
  from urllib3.util.retry import Retry
label_desc: Use image node_id 20 for calling the PulsarManager obj's underlying member method code with example usage: obj.set_retention(tenant, namespace, retention_time_in_minutes, retention_size_in_MB) and returns: response