docs: def get_latitude_variables(nc):
      '''
      Returns a list of all variables matching definitions for latitude
  
      :param netcdf4.dataset nc: an open netcdf dataset object
      '''
      latitude_variables = []
      # standard_name takes precedence
      for variable in nc.get_variables_by_attributes(standard_name="latitude"):
          latitude_variables.append(variable.name)
  
      # Then axis
      for variable in nc.get_variables_by_attributes(axis='Y'):
          if variable.name not in latitude_variables:
              latitude_variables.append(variable.name)
  
      check_fn = partial(attr_membership, value_set=VALID_LAT_UNITS,
                             modifier_fn=lambda s: s.lower())
      for variable in nc.get_variables_by_attributes(units=check_fn):
          if variable.name not in latitude_variables:
              latitude_variables.append(variable.name)
  
      return latitude_variables