def METHOD_NAME(self, attr: TensorAttr) -> Optional[FeatureTensorType]:
    table_name = attr.group_name
    attr_name = attr.attr_name
    attr_info = self.__get_node_property(table_name, attr_name)
    if (not attr_info["type"] in [
        Type.INT64.value, Type.INT32.value, Type.INT16.value,
        Type.DOUBLE.value, Type.FLOAT.value, Type.BOOL.value
    ]) or (attr_info["dimension"] > 0 and "shape" not in attr_info):
        return self.__get_tensor_by_query(attr)
    return self.__get_tensor_by_scan(attr)