code: def _get_destination_project(json_spec, args, build_project_id=None):
      
      if build_project_id:
          return build_project_id
      if 'project' in json_spec:
          return json_spec['project']
      if dxpy.WORKSPACE_ID:
          return dxpy.WORKSPACE_ID
      error_msg = "Can't create a workflow without specifying a destination project; "
      error_msg += "please use the -d/--destination flag to explicitly specify a project"
      raise WorkflowBuilderException(error_msg)
docs: Returns destination project in which the workflow should be created.
      In can be set in multiple ways whose order of precedence is:
      1. --destination, -d option supplied with `dx build`,
      2. 'project' specified in the json file,
      3. project set in the dxpy.WORKSPACE_ID environment variable.