code: def create_generator(noise_dim, conditional_dim):
      noise_dim = noise_dim
      conditional_dim = conditional_dim[0]
  
      return nn.Sequential(Generator(noise_dim, conditional_dim))
  
file_path: deepchem/deepchem/models/torch_models/tests/test_gan.py
imports: import deepchem
  import numpy
  import pytest
  import tempfile
  from flaky import flaky
label_desc: Use image node_id 1 for calling a global function with example usage: create_generator(noise_dim, conditional_dim) and returns: nn