code: def _test__native_dist_model_create_from_context_env_local_rank(
      true_conf,
  ):
      import os
  
      remove_lrank = False
      if "LOCAL_RANK" not in os.environ:
          os.environ["LOCAL_RANK"] = str(true_conf["local_rank"])
          remove_lrank = True
  
      model = _NativeDistModel.create_from_context()
      _assert_model(model, true_conf)
  
      if remove_lrank:
          del os.environ["LOCAL_RANK"]
  
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 12 for calling a global function with example usage: _test__native_dist_model_create_from_context_env_local_rank(true_conf) without return types