def METHOD_NAME(self, attribute_type, searchterm):
    """
    Returns a matching attribute or None if nothing was found.
    """
    result = self.misp_api.search(
        controller="attributes", type_attribute=attribute_type, value=searchterm
    )
    if result["Attribute"]:
        return result["Attribute"][0]
    else:
        return None