code: def test_function_name():
      x = vector("x")
      func = function([x], x + 1.0)
  
      regex = re.compile(os.path.basename(".*test_function.pyc?"))
      assert regex.match(func.name) is not None
  
imports: import os
  import pickle
  import re
  import shutil
  import tempfile
  import numpy
  import pytest
  from pytensor.compile import shared
  from pytensor.compile.function import function, function_dump
  from pytensor.compile.io import In
  from pytensor.configdefaults import config
  from pytensor.tensor.type import bscalar, bvector, dscalar, dvector, fscalar, fvector, vector, wvector
label_desc: Use image node_id 2 for calling a global function with example usage: test_function_name() without return types