code: def get_calculation_dependants_for(service):
      
  
      def calc_dependants_gen(service, collector=None):
          """Generator for recursive resolution of dependant sevices.
          """
  
          # The UID of the service
          service_uid = api.get_uid(service)
  
          # maintain an internal dependency mapping
          if collector is None:
              collector = {}
  
          # Stop iteration if we processed this service already
          if service_uid in collector:
              raise StopIteration
  
          # Get the dependant calculations of the service
          # (calculations that use the service in their formula).
          calc_uids = get_backreferences(
              service, relationship="CalculationDependentServices")
  
          for calc_uid in calc_uids:
              # Get the calculation object
              calc = api.get_object_by_uid(calc_uid)
  
              # Get the Analysis Services which have this calculation assigned
              dep_service_uids = get_backreferences(
                  calc, relationship='AnalysisServiceCalculation')
  
              for dep_service_uid in dep_service_uids:
                  dep_service = api.get_object_by_uid(dep_service_uid)
  
                  # remember the dependent service
                  collector[dep_service_uid] = dep_service
  
                  # yield the dependent service
                  yield dep_service
  
                  # check the dependants of the dependant services
                  for ddep_service in calc_dependants_gen(
                          dep_service, collector=collector):
                      yield ddep_service
  
      dependants = {}
      service = api.get_object(service)
  
      for dep_service in calc_dependants_gen(service):
          # Skip the initial (requested) service
          if dep_service == service:
              continue
          uid = api.get_uid(dep_service)
          dependants[uid] = dep_service
  
      return dependants
docs: Collect all services which depend on this service
  
      :param service: Analysis Service Object/ZCatalog Brain
      :returns: List of services that depend on this service