code: def get_assign_value(node):
      
      try:
          targets = node.targets
      except AttributeError:
          targets = [node.target]
  
      if len(targets) == 1:
          target = targets[0]
          if isinstance(target, astroid.nodes.AssignName):
              name = target.name
          elif isinstance(target, astroid.nodes.AssignAttr):
              name = target.attrname
          else:
              return None
          return (name, _get_const_values(node.value))
  
      return None
docs: Get the name and value of the assignment of the given node.
  
      Assignments to multiple names are ignored, as per PEP 257.
  
      :param node: The node to get the assignment value from.
      :type node: astroid.nodes.Assign or astroid.nodes.AnnAssign
  
      :returns: The name that is assigned to,
          and the value assigned to the name (if it can be converted).
      :rtype: tuple(str, object or None) or None