docs: def find_parent_id_for_component(self, component_id):
          """
          Given the URL to a component, returns the parent component's URL.
  
          :param string component_id: The URL of the component.
          :return: A tuple containing:
              * The type of the parent record; valid values are ArchivesSpaceClient.RESOURCE and ArchivesSpaceClient.RESOURCE_COMPONENT.
              * The URL of the parent record.
              If the provided URL fragment references a resource, this method will simply return the same URL.
          :rtype tuple:
          """
          response = self.get_record(component_id)
          if "parent" in response:
              return (ArchivesSpaceClient.RESOURCE_COMPONENT, response["parent"]["ref"])
          # if this is the top archival object, return the resource instead
          elif "resource" in response:
              return (ArchivesSpaceClient.RESOURCE, response["resource"]["ref"])
          # resource was passed in, which has no higher-up record;
          # return the same ID
          else:
              return (ArchivesSpaceClient.RESOURCE, component_id)