parameters: (features)
return_statement: return features
docstring: Helper function to parse features.
docstring_summary: Helper function to parse features.
docstring_tokens: Helper function to parse features .
function: def _parse_tensor_or_dict(features):
    """Helper function to parse features."""
    if isinstance(features, dict):
      keys = sorted(features.keys())
      with ops.colocate_with(features[keys[0]]):
        features = array_ops.concat([features[k] for k in keys], 1)
    return features
function_tokens: def _parse_tensor_or_dict ( features ) : if isinstance ( features , dict ) : keys = sorted ( features . keys ( ) ) with ops . colocate_with ( features [ keys [ 0 ] ] ) : features = array_ops . concat ( [ features [ k ] for k in keys ] , 1 ) return features