code: public SDVariable cosineDistance(String name, SDVariable x, SDVariable y, int... dimensions) {
          validateNumerical("cosine distance", x, y);
          SDVariable result = f().cosineDistance(x, y, dimensions);
          return updateVariableNameAndReference(result, name);
      }
docs: Cosine distance reduction operation. The output contains the cosine distance for each
  tensor/subset along the specified dimensions:<br>
  out = 1.0 - cosineSimilarity(x,y)<br>
  See {@link #cosineSimilarity(String, SDVariable, SDVariable, int...)}
  
  @param name       Name of the output variable
  @param x          Input variable x
  @param y          Input variable y
  @param dimensions Dimensions to calculate cosine similarity over
  @return Output variable