code: def get_required_packages():
      """Returns list of required packages."""
      if FLAGS.release:
          tf_keras_version = TF_KERAS_VERSION
      else:
          tf_keras_version = TF_KERAS_NIGHTLY
  
      # Overrides required versions if FLAGS are set.
      if FLAGS.tf_keras_version:
          tf_keras_version = FLAGS.tf_keras_version
  
      required_packages = [
          "absl-py >= 2.0.0",
          "cloudpickle >= 3.0.0",
          "gin-config >= 0.5.0",
          "gym >= 0.17.0, <= 0.23.1",
          "gymnasium >= 0.29.0",
          "numpy >= 1.26.2",
          "pillow >= 10.1.0",
          "six >= 1.16.0",
          "protobuf >= 3.11.3, <= 4.23.4",
          "wrapt >= 1.11.1",
          # Using an older version to avoid this bug
          # https://github.com/tensorflow/tensorflow/issues/62217
          # while using tf 2.15.0
          "typing-extensions == 4.5.0",
          # Used by gym >= 0.22.0. Only installed as a dependency when gym[all] is
          # installed or if gym[*] (where * is an environment which lists pygame as
          # a dependency).
          "pygame == 2.5.2",
          tf_keras_version,
      ]
      add_additional_packages(required_packages)
      return required_packages
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import codecs
  import datetime
  import fnmatch
  import io
  import os
  import subprocess
  import sys
  import unittest
  from setuptools import find_packages
  from setuptools import setup
  from setuptools.command.test import test
  from setuptools.dist import Distribution
  import version
label_desc: Use image node_id 2 for calling a global function with example usage: get_required_packages() and returns: required_packages