<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def consider_member(name_member, member, module, class_=None):
 """Return |True| if the given member should be added to the substitutions. If not return |False|. Some examples based on the site-package |numpy|: A constant like |nan| should be added: True Members with a prefixed underscore should not be added: False Members that are actually imported modules should not be added: False Members that are actually defined in other modules should not be added: False Members that are defined in submodules of a given package (either from the standard library or from site-packages) True False For descriptor instances (with method `__get__`) beeing members of classes should be added: True """

        if name_member.startswith('_'):
            return False
        if inspect.ismodule(member):
            return False
        real_module = getattr(member, '__module__', None)
        if not real_module:
            return True
        if real_module != module.__name__:
            if class_ and hasattr(member, '__get__'):
                return True
            if 'hydpy' in real_module:
                return False
            if module.__name__ not in real_module:
                return False
        return True