docstr: Create omero gateway based on module settings 
docstr_tok: ["Create","omero","gateway","based","on","module","settings"]
code: def create_omero_gateway(self):
      """Create omero gateway based on module settings"""
      if self.omero_client is not None:
          self.omero_client.closeSession()
      (
          self.omero_client,
          self.omero_session,
          self.omero_gateway,
      ) = create_omero_gateway(
          self.omero_host.value,
          self.omero_port.value,
          self.omero_username.value,
          self.omero_password.value,
      )
  
imports: import traceback
  import numpy
  import wx
  import cellprofiler_core.image
  import cellprofiler_core.module
  import cellprofiler_core.measurement
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  from cellprofiler_core.modules import default_cpimage_name
  import omero
  from omero.rtypes import rlong
  from omero.rtypes import rint
  from omero_version import omero_version
label_desc: Use image node_id 2 for calling the OmeroLoadImages obj's underlying member method code with example usage: obj.create_omero_gateway() without return types