code: def get_slot_position(self, container, type='a'):
          
          if not container or type not in ALLOWED_ANALYSES_TYPES:
              return None
          uid = api.get_uid(container)
          layout = self.getLayout()
  
          for pos in layout:
              if pos['type'] != type or pos['container_uid'] != uid:
                  continue
              return to_int(pos['position'])
          return None
docs: Returns the slot where the analyses from the type and container passed
          in are located within the worksheet.
  
          :param container: the container in which the analyses are grouped
          :param type: type of the analysis
          :return: the slot position
          :rtype: int