docs: def import_classes(name, currmodule):
      # type: (unicode, unicode) -> Any
      """Import a class using its fully-qualified *name*."""
      target = None
  
      # import class or module using currmodule
      if currmodule:
          target = try_import(currmodule + '.' + name)
  
      # import class or module without currmodule
      if target is None:
          target = try_import(name)
  
      if target is None:
          raise InheritanceException(
              'Could not import class or module %r specified for '
              'inheritance diagram' % name)
  
      if inspect.isclass(target):
          # If imported object is a class, just return it
          return [target]
      elif inspect.ismodule(target):
          # If imported object is a module, return classes defined on it
          classes = []
          for cls in target.__dict__.values():
              if inspect.isclass(cls) and cls_is_in_module(cls, mod=target):
                  classes.append(cls)
          return classes
      raise InheritanceException('%r specified for inheritance diagram is '
                                 'not a class or module' % name)