docstr: Sets the local configuration for the datasource of the current dataset.
  
  Find a detailed explanation on how to setup Lightly with a local file
  server in our docs: https://docs.lightly.ai/getting_started/dataset_creation/dataset_creation_local_server.html
  
  Args:
      relative_path:
          Relative path from the mount root, for example: "path/to/my/data".
      web_server_location:
          Location of your local file server. Defaults to "http://localhost:3456".
      thumbnail_suffix:
          Where to save thumbnails of the images in the dataset, for
          example ".lightly/thumbnails/[filename]_thumb.[extension]".
          Set to None to disable thumbnails and use the full images from the
          datasource instead.
      purpose:
          Datasource purpose, determines if datasource is read only (INPUT)
          or can be written to as well (LIGHTLY, INPUT_OUTPUT).
docstr_tok: ["Sets","the","local","configuration","for","the","datasource","of","the","current","dataset",".","Find","a","detailed","explanation","on","how","to","setup","Lightly","with","a","local","file","server","in","our","docs",":","https",":","\/\/docs.lightly.ai\/getting_started\/dataset_creation\/dataset_creation_local_server.html","Args",":","relative_path",":","Relative","path","from","the","mount","root",",","for","example",":","``","path\/to\/my\/data","''",".","web_server_location",":","Location","of","your","local","file","server",".","Defaults","to","``","http",":","\/\/localhost:3456","''",".","thumbnail_suffix",":","Where","to","save","thumbnails","of","the","images","in","the","dataset",",","for","example","``",".lightly\/thumbnails\/","[","filename","]","_thumb.","[","extension","]","''",".","Set","to","None","to","disable","thumbnails","and","use","the","full","images","from","the","datasource","instead",".","purpose",":","Datasource","purpose",",","determines","if","datasource","is","read","only","(","INPUT",")","or","can","be","written","to","as","well","(","LIGHTLY",",","INPUT_OUTPUT",")","."]
code: def set_local_config(
      self,
      relative_path: str = "",
      web_server_location: Optional[str] = "http://localhost:3456",
      thumbnail_suffix: Optional[
          str
      ] = ".lightly/thumbnails/[filename]_thumb.[extension]",
      purpose: str = DatasourcePurpose.INPUT_OUTPUT,
  ) -> None:
      """Sets the local configuration for the datasource of the current dataset.
  
      Find a detailed explanation on how to setup Lightly with a local file
      server in our docs: https://docs.lightly.ai/getting_started/dataset_creation/dataset_creation_local_server.html
  
      Args:
          relative_path:
              Relative path from the mount root, for example: "path/to/my/data".
          web_server_location:
              Location of your local file server. Defaults to "http://localhost:3456".
          thumbnail_suffix:
              Where to save thumbnails of the images in the dataset, for
              example ".lightly/thumbnails/[filename]_thumb.[extension]".
              Set to None to disable thumbnails and use the full images from the
              datasource instead.
          purpose:
              Datasource purpose, determines if datasource is read only (INPUT)
              or can be written to as well (LIGHTLY, INPUT_OUTPUT).
  
      """
      # TODO: Use DatasourceConfigLocal once we switch/update the api generator.
      self._datasources_api.update_datasource_by_dataset_id(
          datasource_config=DatasourceConfig.from_dict(
              {
                  "type": "LOCAL",
                  "webServerLocation": web_server_location,
                  "fullPath": relative_path,
                  "thumbSuffix": thumbnail_suffix,
                  "purpose": purpose,
              }
          ),
          dataset_id=self.dataset_id,
      )
  
imports: import time
  import warnings
  from typing import Dict, Iterator, List, Optional, Set, Tuple, Union
  import tqdm
  from lightly.openapi_generated.swagger_client.models import DatasourceConfig, DatasourceProcessedUntilTimestampRequest, DatasourceProcessedUntilTimestampResponse, DatasourcePurpose, DatasourceRawSamplesData
  from lightly.openapi_generated.swagger_client.models.datasource_raw_samples_data_row import DatasourceRawSamplesDataRow
label_desc: Use image node_id 12 for calling the _DatasourcesMixin obj's underlying member method code with example usage: obj.set_local_config(relative_path, web_server_location, thumbnail_suffix, purpose) without return types