nodes: 0, module; 1, function_definition; 2, function_name:coerce_pandas_values; 3, parameters; 4, block; 5, identifier:objects; 6, expression_statement; 7, import_from_statement; 8, import_from_statement; 9, expression_statement; 10, for_statement; 11, return_statement; 12, comment:"""Convert pandas values found in a list of labeled objects.
  
      Parameters
      ----------
      objects : list of Dataset or mappings
          The mappings may contain any sort of objects coercible to
          xarray.Variables as keys, including pandas objects.
  
      Returns
      -------
      List of Dataset or OrderedDict objects. Any inputs or values in the inputs
      that were pandas objects have been converted into native xarray objects.
      """; 13, relative_import; 14, dotted_name; 15, relative_import; 16, dotted_name; 17, assignment; 18, identifier:obj; 19, identifier:objects; 20, block; 21, identifier:out; 22, import_prefix; 23, dotted_name; 24, identifier:Dataset; 25, import_prefix; 26, dotted_name; 27, identifier:DataArray; 28, identifier:out; 29, list; 30, if_statement; 31, expression_statement; 32, identifier:dataset; 33, identifier:dataarray; 34, call; 35, block; 36, else_clause; 37, call; 38, identifier:isinstance; 39, argument_list; 40, expression_statement; 41, block; 42, attribute; 43, argument_list; 44, identifier:obj; 45, identifier:Dataset; 46, assignment; 47, expression_statement; 48, if_statement; 49, for_statement; 50, identifier:out; 51, identifier:append; 52, identifier:variables; 53, identifier:variables; 54, identifier:obj; 55, assignment; 56, call; 57, block; 58, pattern_list; 59, call; 60, block; 61, identifier:variables; 62, call; 63, identifier:isinstance; 64, argument_list; 65, expression_statement; 66, identifier:k; 67, identifier:v; 68, attribute; 69, argument_list; 70, if_statement; 71, expression_statement; 72, identifier:OrderedDict; 73, argument_list; 74, identifier:obj; 75, identifier:PANDAS_TYPES; 76, assignment; 77, identifier:obj; 78, identifier:items; 79, call; 80, block; 81, assignment; 82, identifier:obj; 83, call; 84, identifier:isinstance; 85, argument_list; 86, expression_statement; 87, subscript; 88, identifier:v; 89, identifier:OrderedDict; 90, argument_list; 91, identifier:v; 92, identifier:PANDAS_TYPES; 93, assignment; 94, identifier:variables; 95, identifier:k; 96, call; 97, identifier:v; 98, call; 99, attribute; 100, argument_list; 101, identifier:DataArray; 102, argument_list; 103, identifier:obj; 104, identifier:iteritems; 105, identifier:v
code: def coerce_pandas_values(objects):
      """Convert pandas values found in a list of labeled objects.
  
      Parameters
      ----------
      objects : list of Dataset or mappings
          The mappings may contain any sort of objects coercible to
          xarray.Variables as keys, including pandas objects.
  
      Returns
      -------
      List of Dataset or OrderedDict objects. Any inputs or values in the inputs
      that were pandas objects have been converted into native xarray objects.
      """
      from .dataset import Dataset
      from .dataarray import DataArray
  
      out = []
      for obj in objects:
          if isinstance(obj, Dataset):
              variables = obj
          else:
              variables = OrderedDict()
              if isinstance(obj, PANDAS_TYPES):
                  obj = OrderedDict(obj.iteritems())
              for k, v in obj.items():
                  if isinstance(v, PANDAS_TYPES):
                      v = DataArray(v)
                  variables[k] = v
          out.append(variables)
      return out