docs: def find_parent_id_for_component(self, component_id):
          """
          Given the ID of a component, returns the parent component's ID.
  
          :param string component_id: The ID of the component.
          :return: A tuple containing:
              * The type of the parent record; valid values are ArchivesSpaceClient.RESOURCE and ArchivesSpaceClient.RESOURCE_COMPONENT.
              * The ID of the parent record.
          :rtype tuple:
          """
          cursor = self.db.cursor()
  
          sql = "SELECT parentResourceComponentId FROM ResourcesComponents WHERE resourceComponentId=%s"
          count = cursor.execute(sql, (component_id,))
          if count > 0:
              return (ArchivistsToolkitClient.RESOURCE_COMPONENT, cursor.fetchone())
  
          return (
              ArchivistsToolkitClient.RESOURCE,
              self.find_resource_id_for_component(component_id),
          )