code: def rename_libraries():
      print("SETTING UP")
      # unload perspective from sys modules
      unload()
  
      # rename the binding so it doesnt import
      os.rename(binding, new_binding)
      os.rename(psp, new_psp)
      assert os.path.exists(new_binding)
      assert os.path.exists(new_psp)
      assert not os.path.exists(binding)
      assert not os.path.exists(psp)
  
      # import
      import perspective
  
      # defer to test
      yield
  
      # rename back
      os.rename(new_binding, binding)
      os.rename(new_psp, psp)
      assert os.path.exists(binding)
      assert os.path.exists(psp)
      assert not os.path.exists(new_binding)
      assert not os.path.exists(new_psp)
  
      # unload from sys.modules
      unload()
  
      # import again
      import perspective
  
imports: import os
  import pytest
  import sys
  import numpy
  import pandas
  from datetime import date, datetime
  from functools import partial
  from types import MethodType
label_desc: Use image node_id 3 for calling a global function with example usage: rename_libraries() without return types