def is_interactive_shell_example_line(func_start_index, py_module_str):
    """
    Get a boolean value of whether the target function is
    docstring of interactive shell string (e.g., `>>> def sample():`).

    Parameters
    ----------
    func_start_index : int
        The index of the string at the start of the function.
    py_module_str : str
        String of target module.

    Returns
    -------
    result_bool : bool
        If the target function is a interactive shell docstring string,
        True will be set.
    """
    pre_str = py_module_str[func_start_index - 20:func_start_index]
    pre_str = pre_str.split('\n')[-1]
    is_in = '>>> ' in pre_str
    if is_in:
        return True
    is_in = '... ' in pre_str
    if is_in:
        return True
    return False
