code: def main(core_context, increment_by):
      x = 0
      for batch in range(100):
          x += increment_by
          steps_completed = batch + 1
          time.sleep(0.1)
          logging.info(f"x is now {x}")
          # NEW: report training metrics.
          if steps_completed % 10 == 0:
              core_context.train.report_training_metrics(
                  steps_completed=steps_completed, metrics={"x": x}
              )
      # NEW: report a "validation" metric at the end.
      core_context.train.report_validation_metrics(
          steps_completed=steps_completed, metrics={"x": x}
      )
  
imports: import logging
  import sys
  import time
  import determined
label_desc: Use image node_id 1 for calling a global function with example usage: main(core_context, increment_by) without return types