code: def _field_assign(frozen, name, value, self_name):
      # If we're a frozen class, then assign to our fields in __init__
      # via object.__setattr__.  Otherwise, just use a simple
      # assignment.
      #
      # self_name is what "self" is called in this function: don't
      # hard-code "self", since that might be a field name.
      if frozen:
          return f"object.__setattr__({self_name},{name!r},{value})"
      return f"{self_name}.{name}={value}"
  
imports: import re
  import sys
  import copy
  import types
  import inspect
  import keyword
label_desc: Use image node_id 4 for calling a global function with example usage: _field_assign(frozen, name, value, _name) and returns: self_name, str, name, str, value, str, self_name, str, name, str, value, str