code: def reseed(newseed):
      print(f"\npytest-randomly: reseed with {newseed}")
      try:
          import tensorflow
  
          tensorflow.random.set_seed(newseed)
      except ImportError:
          print("\nTensorFlow seed not set")
      try:
          import torch
  
          torch.manual_seed(newseed)
      except ImportError:
          print("\nPyTorch seed not set")
  
label_desc: Use image node_id 1 for calling a global function with example usage: reseed(newseed) without return types