code: def get_config(self, code_dir, project_dir):
          
  
          # Search for manifest first in code directory and then in the project directory.
          # Search order is important here because we want to prefer the manifest present within the code directory over
          # a manifest present in project directory.
          search_dirs = [code_dir, project_dir]
          LOG.debug("Looking for a supported build workflow in following directories: %s", search_dirs)
  
          for config in self.configs:
  
              if any([self._has_manifest(config, directory) for directory in search_dirs]):
                  return config
  
          raise ValueError("None of the supported manifests '{}' were found in the following paths '{}'".format(
                           [config.manifest_name for config in self.configs],
                           search_dirs))
docs: Finds a configuration by looking for a manifest in the given directories.
  
          Returns
          -------
          samcli.lib.build.workflow_config.CONFIG
              A supported configuration if one is found
  
          Raises
          ------
          ValueError
              If none of the supported manifests files are found