code: def inst_has_typename(inst, types):
      """
      Return `True` if the instance is created from class
      which has base that matches passed `types`
      """
      inst_type, inst_cls_type = get_inst_type_str(inst)
      inst_types = [inst_type, inst_cls_type] + get_inst_base_types(
          inst
      )
  
      for i in inst_types:
          found = True
          for t in types:
              if i.find(t) == -1:
                  found = False
                  break
          if found:
              return True
  
      return False
  
file_path: aim/aim/sdk/num_utils.py
label_desc: Use image node_id 3 for calling a global function with example usage: inst_has_typename(inst, types) and returns: False, True