code: def __create_orget_address(conn, name, region):
      '''
      Reuse or create a static IP address.
      Returns a native GCEAddress construct to use with libcloud.
      '''
      try:
          addy = conn.ex_get_address(name, region)
      except ResourceNotFoundError:  # pylint: disable=W0703
          addr_kwargs = {
              'name': name,
              'region': region
          }
          new_addy = create_address(addr_kwargs, "function")
          addy = conn.ex_get_address(new_addy['name'], new_addy['region'])
  
      return addf __create_orget_address(conn, name, region):
      '''
      Reuse or create a static IP address.
      Returns a native GCEAddress construct to use with libcloud.
      '''
      try:
          addy = conn.ex_get_address(name, region)
      except ResourceNotFoundError:  # pylint: disable=W0703
          addr_kwargs = {
              'name': name,
              'region': region
          }
          new_addy = create_address(addr_kwargs, "function")
          addy = conn.ex_get_address(new_addy['name'], new_addy['region'])
  
      return addy
docs: Reuse or create a static IP address.
      Returns a native GCEAddress construct to use with libcloud.