code: def _test__native_dist_model_create_from_context_set_local_rank(
      true_conf,
  ):
      from ignite.distributed.comp_models.base import ComputationModel
  
      lrank = None
      if "LOCAL_RANK" in os.environ:
          lrank = os.environ["LOCAL_RANK"]
          del os.environ["LOCAL_RANK"]
  
      ComputationModel._ext_local_rank = true_conf["local_rank"]
  
      model = _NativeDistModel.create_from_context()
      _assert_model(model, true_conf)
  
      ComputationModel._ext_local_rank = None
  
      if lrank is not None:
          os.environ["LOCAL_RANK"] = lrank
  
imports: import os
  import pytest
  import torch
  import torch.distributed
  from ignite.distributed.comp_models import has_native_dist_support
label_desc: Use image node_id 13 for calling a global function with example usage: _test__native_dist_model_create_from_context_set_local_rank(true_conf) without return types