code: def validate_module(sample_generator_module: Any):
      if not hasattr(sample_generator_module, "generate_sample"):
          raise GeneratorValidationException(
              "sample generator module doesn't have a function called 'generate_sample'"
          )
  
      if not inspect.isfunction(
          getattr(sample_generator_module, "generate_sample")
      ):
          raise GeneratorValidationException(
              "'generate_sample' is not a function"
          )
  
      if (
          inspect.getfullargspec(
              getattr(sample_generator_module, "generate_sample")
          ).args
          != []
      ):
          raise GeneratorValidationException(
              "'generate_sample' function must not have any parameters"
          )
  
file_path: cortex/test/e2e/e2e/generator.py
imports: import importlib
  import pathlib
  from typing import Any, Callable, List
  import sys
  import inspect
  from e2e.exceptions import GeneratorValidationException
label_desc: Use image node_id 2 for calling a global function with example usage: validate_module(sample_generator_module) without return types