code: def has_sphinx(self):
      return bool(
          self.upload_dir is None
          and metadata.entry_points(
              group="distutils.commands", name="build_sphinx"
          )
      )
  
imports: from base64 import standard_b64encode
  from distutils import log
  from distutils.errors import DistutilsOptionError
  import os
  import zipfile
  import tempfile
  import shutil
  import itertools
  import functools
  import http.client
  import urllib.parse
  from .._importlib import metadata
  from ..warnings import SetuptoolsDeprecationWarning
  from .upload import upload
label_desc: Use image node_id 1 for calling the upload_docs obj's underlying member method code with example usage: obj.has_sphinx() and returns: bool