docstr: Performs the global search for conformations.
docstr_tok: ["Performs","the","global","search","for","conformations","."]
code: def generate_conformation(self, protein, ligand, max_steps=10):
      """Performs the global search for conformations."""
      best_conf = None
      best_score = np.inf
      conf = self.sample_random_conformation()
      for i in range(max_steps):
          mut_conf = self.mutate_conformer(conf)
          loc_conf = self.gradient_minimize(mut_conf)
          if best_conf is None:
              best_conf = loc_conf
          else:
              loc_score = self.score(loc_conf)
              if loc_score < best_score:
                  best_conf = loc_conf
      return best_conf
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import unicode_literals
  import warnings
  import numpy
  import tensorflow
  from deepchem.models import Model
  from deepchem.nn import model_ops
  import deepchem.utils.rdkit_util
label_desc: Use image node_id 6 for calling the VinaModel obj's underlying member method code with example usage: obj.generate_conformation(protein, ligand, max_steps) and returns: best_conf