code: def _get_arguments_for_from_pretrained_model(
      model_loading_strategy: ModelLoadingStrategy,
  ) -> PretrainedModelLoadingArguments:
      if model_loading_strategy == ModelLoadingStrategy.DEFAULT:
          if str(os.environ.get("TRANSFORMERS_OFFLINE", "0")) == "1":
              # same as ALWAYS_LOCAL
              return PretrainedModelLoadingArguments(
                  local_files_only=True
              )
          else:
              return PretrainedModelLoadingArguments()
      elif model_loading_strategy == ModelLoadingStrategy.ALWAYS_LOCAL:
          return PretrainedModelLoadingArguments(local_files_only=True)
      else:
          return PretrainedModelLoadingArguments(force_download=True)
  
file_path: small-text/small_text/integrations/transformers/utils/classification.py
imports: import os
  from typing import List
  from transformers import logging
  from transformers import AutoConfig, AutoModelForSequenceClassification, AutoTokenizer, PreTrainedModel
  from small_text.integrations.transformers.classifiers.base import ModelLoadingStrategy, PretrainedModelLoadingArguments
label_desc: Use image node_id 1 for calling a global function with example usage: _get_arguments_for_from_pretrained_model(model_loading_strategy) and returns: PretrainedModelLoadingArguments, PretrainedModelLoadingArguments, PretrainedModelLoadingArguments, PretrainedModelLoadingArguments