code: def test_Mode_basic():
      db = SequenceDB()
      mode = Mode(
          linker="py",
          optimizer=RewriteDatabaseQuery(include=None),
          db=db,
      )
  
      assert mode.optdb is db
  
      assert str(mode).startswith(
          "Mode(linker=py, optimizer=RewriteDatabaseQuery"
      )
  
file_path: pytensor/tests/compile/test_mode.py
imports: import copy
  import pytest
  from pytensor.compile.function import function
  from pytensor.compile.mode import AddFeatureOptimizer, Mode, get_default_mode, get_target_language
  from pytensor.configdefaults import config
  from pytensor.graph.features import NoOutputFromInplace
  from pytensor.graph.rewriting.db import RewriteDatabaseQuery, SequenceDB
  from pytensor.link.basic import LocalLinker
  from pytensor.tensor.math import dot, tanh
  from pytensor.tensor.type import matrix, vector
label_desc: Use image node_id 1 for calling a global function with example usage: test_Mode_basic() without return types