class_docstr: Small util to format the doc.
docstr: Returns True if any of the builder/config/version is new.
docstr_tok: ["Returns","True","if","any","of","the","builder\/config\/version","is","new","."]
code: def has_nightly(self, builder: tfds.core.DatasetBuilder) -> bool:
      """Returns True if any of the builder/config/version is new."""
  
      def reduce(value):
          if isinstance(value, bool):
              return value
          elif isinstance(value, dict):
              return any(reduce(x) for x in value.values())
          else:
              raise AssertionError(
                  f"Invalid nightly_dict value: {value}"
              )
  
      return reduce(self._nightly_dict[builder.name])
  
imports: import collections
  import dataclasses
  import json
  import os
  import textwrap
  from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
  import tensorflow_datasets
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 5 for calling the NightlyDocUtil obj's underlying member method code with example usage: obj.has_nightly(builder) and returns: reduce, value, any