code: def new_folder(self, folder, parents=False, **kwargs):
          
          api_method = dxpy.api.container_new_folder
          if isinstance(self, DXProject):
              api_method = dxpy.api.project_new_folder
  
          api_method(self._dxid, {"folder": folder,
                                  "parents": parents},
                     **kwargs)
docs: :param folder: Full path to the new folder to create
          :type folder: string
          :param parents: If True, recursively create any parent folders that are missing
          :type parents: boolean
  
          Creates a new folder in the project or container.