code: def _fix_lons(lons):
      """
      Fix the given longitudes into the range ``[-180, 180]``.
  
      """
      lons = np.array(lons, copy=False, ndmin=1)
      fixed_lons = ((lons + 180) % 360) - 180
      # Make the positive 180s positive again.
      fixed_lons[(fixed_lons == -180) & (lons > 0)] *= -1
      return fixed_lons
  
imports: import itertools
  import operator
  import warnings
  import matplotlib
  import matplotlib.artist
  import matplotlib.collections
  import matplotlib.text
  import matplotlib.ticker
  import matplotlib.transforms
  import numpy
  import shapely.geometry
  import cartopy
  from cartopy.crs import PlateCarree, Projection, _RectangularProjection
  from cartopy.mpl.ticker import LatitudeFormatter, LatitudeLocator, LongitudeFormatter, LongitudeLocator
label_desc: Use image node_id 1 for calling a global function with example usage: _fix_lons(lons) and returns: fixed_lons