def get_source(x, start_end=None):
    """
    Print the source code of module x
    Args:
        x: python module
        start_end: a tuple consists of start line content and end line content
    Returns:

    """
    code = getsource(x)
    if start_end:
        dict_start = code.find(start_end[0])
        dict_end = code.find(start_end[1])
        code = code[dict_start:dict_end + 1]
    return dedent(code)

    Print the source code of module x
    Args:
        x: python module
        start_end: a tuple consists of start line content and end line content
    Returns:

    
metadrive/utils/doc_utils.py