code: private Set<Label> extendedScopeTypeLabels(GraqlCompute.Statistics.Value query) {
          Set<Label> extendedTypeLabels = getAttributeImplicitRelationTypeLabes(targetTypes(query));
          extendedTypeLabels.addAll(scopeTypeLabels(query));
          extendedTypeLabels.addAll(query.of().stream().map(Label::of).collect(toSet()));
          return extendedTypeLabels;
      }
docs: Helper method to get all the concept types that should scope of compute query, which includes the implicit types
  between attributes and entities, if target types were provided. This is used for compute statistics queries.
  
  @return a set of type labels