docs: def get_requests_for_local_unit(relation_name=None):
      """Extract any certificates data targeted at this unit down relation_name.
  
      :param relation_name: str Name of relation to check for data.
      :returns: List of bundles of certificates.
      :rtype: List of dicts
      """
      local_name = local_unit().replace('/', '_')
      raw_certs_key = '{}.processed_requests'.format(local_name)
      relation_name = relation_name or 'certificates'
      bundles = []
      for rid in relation_ids(relation_name):
          for unit in related_units(rid):
              data = relation_get(rid=rid, unit=unit)
              if data.get(raw_certs_key):
                  bundles.append({
                      'ca': data['ca'],
                      'chain': data.get('chain'),
                      'certs': json.loads(data[raw_certs_key])})
      return bundles