code: def _run_step(network, X_batch, y_batch, cost=None, acc=None):
      """Run for one step"""
      y_pred = network(X_batch)
      _loss, _acc = None, None
      if cost is not None:
          _loss = cost(y_pred, y_batch)
      if acc is not None:
          _acc = acc(y_pred, y_batch)
      return _loss, _acc
  
imports: import os
  import random
  import subprocess
  import sys
  import time
  from collections import Counter
  from sys import exit
  from sys import platform
  import numpy
  import tensorflow
  from sklearn.metrics import accuracy_score, confusion_matrix, f1_score
  import tensorlayer
label_desc: Use image node_id 17 for calling a global function with example usage: _run_step(network, X_batch, y_batch, cost, acc) and returns: _loss,  _acc