code: def repository_has_cookiecutter_json(repo_directory):
      
      repo_directory_exists = os.path.isdir(repo_directory)
  
      repo_config_exists = os.path.isfile(
          os.path.join(repo_directory, 'cookiecutter.json')
      )
      return repo_directory_exists and repo_config_exists
docs: Determine if `repo_directory` contains a `cookiecutter.json` file.
  
      :param repo_directory: The candidate repository directory.
      :return: True if the `repo_directory` is valid, else False.