def transpile_dag(dag, basis_gates=None, coupling_map=None,<EOL>initial_layout=None, seed_mapper=None, pass_manager=None):
warnings.warn("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>", DeprecationWarning)<EOL>if basis_gates is None:<EOL><INDENT>basis_gates = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT:id>']<EOL><DEDENT>if pass_manager is None:<EOL><INDENT>if coupling_map:<EOL><INDENT>pass_manager = default_pass_manager(basis_gates,<EOL>CouplingMap(coupling_map),<EOL>initial_layout,<EOL>seed_transpiler=seed_mapper)<EOL><DEDENT>else:<EOL><INDENT>pass_manager = default_pass_manager_simulator(basis_gates)<EOL><DEDENT><DEDENT>name = dag.name<EOL>circuit = dag_to_circuit(dag)<EOL>circuit = pass_manager.run(circuit)<EOL>dag = circuit_to_dag(circuit)<EOL>dag.name = name<EOL>return dag<EOL>
Deprecated - Use qiskit.compiler.transpile for transpiling from
    circuits to circuits.
    Transform a dag circuit into another dag circuit
    (transpile), through consecutive passes on the dag.

    Args:
        dag (DAGCircuit): dag circuit to transform via transpilation
        basis_gates (list[str]): list of basis gate names supported by the
            target. Default: ['u1','u2','u3','cx','id']
        coupling_map (list): A graph of coupling::

            [
             [control0(int), target0(int)],
             [control1(int), target1(int)],
            ]

            eg. [[0, 2], [1, 2], [1, 3], [3, 4]}

        initial_layout (Layout or None): A layout object
        seed_mapper (int): random seed_mapper for the swap mapper
        pass_manager (PassManager): pass manager instance for the transpilation process
            If None, a default set of passes are run.
            Otherwise, the passes defined in it will run.
            If contains no passes in it, no dag transformations occur.

    Returns:
        DAGCircuit: transformed dag