code: def create_dqn_agent(sess, environment, summary_writer=None):
      return MyDQNAgent(
          sess,
          num_actions=environment.action_space.n,
          summary_writer=summary_writer,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import logging
  from dopamine.agents.dqn import dqn_agent
  from dopamine.agents.rainbow import rainbow_agent
  from dopamine.discrete_domains import atari_lib
  from dopamine.discrete_domains import iteration_statistics
  from dopamine.discrete_domains import run_experiment
  from dopamine.utils import agent_visualizer
  from dopamine.utils import atari_plotter
  from dopamine.utils import bar_plotter
  from dopamine.utils import line_plotter
  import gin
  import numpy
  import tensorflow
  import tf_slim
label_desc: Use image node_id 1 for calling a global function with example usage: create_dqn_agent(sess, environment, summary_writer) and returns: MyDQNAgent