code: def set_global_var(self, var):
      self.global_var = var
  
file_path: ray/doc/source/ray-core/doc_code/anti_pattern_global_variables.py
imports: import ray
label_desc: Use image node_id 2 for calling the GlobalVarActor obj's underlying member method code with example usage: obj.set_global_var(var) without return types