code: def get_opt_energy(atoms: Atoms, fmax: float = 0.001) -> float:
      calculator = EMT()
      atoms.set_calculator(calculator)
      opt = LBFGS(atoms, logfile=None)
      opt.run(fmax=fmax)
      return atoms.get_total_energy()
  
imports: from __future__ import annotations
  import io
  import logging
  import os
  import sys
  import uuid
  from ase import Atoms
  from ase.build import bulk, fcc111, molecule, add_adsorbate
  from ase.calculators.emt import EMT
  from ase.io import write, read
  from ase.optimize import LBFGS
  import numpy
  from optuna.artifacts import FileSystemArtifactStore
  from optuna.artifacts import upload_artifact
  from optuna.logging import get_logger
  from optuna import create_study
  from optuna import Trial
label_desc: Use image node_id 1 for calling a global function with example usage: get_opt_energy(atoms, fmax) and returns: atoms