def METHOD_NAME(self, entity, entity_classes, client):
    """
    Add list of classes to entity with respect to entity_classes
    """
    query = {"text": "query cls | m <aio:isAnInstanceOf> cls"}
    variableBindings = [{"variable": "m", "dataType": "aio:Entity", "value": entity}]
    try:
        #             time.sleep(1)
        answer = client.get_knowledge_query_answer(
            query=query, variableBindings=variableBindings, timeout_in_millis=10000
        )
        results = {a["bindingList"][0]["value"] for a in answer["results"]}
    except Exception as e:
        print(e)
        results = set()
    # add classes to an entity
    for base_class in entity_classes:
        classes = set(entity_classes[base_class])
        classes.add(base_class)
        if base_class in results:
            self.data[entity]["classes"] = self.data[entity]["classes"].union(classes.intersection(results))
            if base_class != "aio:Thing":  # aio:Thing - common base class for miscellanious types of entities
                self.data[entity]["base_class"] = base_class
        if self.data[entity]["base_class"] == "":
            self.data[entity]["base_class"] = "aio:Thing"