code: def update(fid, body):
      """
      Update a general file from Plotly.
  
      :param (str) fid: The `{username}:{idlocal}` identifier. E.g. `foo:88`.
      :param (dict) body: A mapping of body param names to values.
      :returns: (requests.Response) Returns response directly from requests.
  
      """
      url = build_url(RESOURCE, id=fid)
      return request("put", url, json=body)
  
imports: from __future__ import absolute_import
  from chart_studio.api.v2.utils import build_url, make_params, request
label_desc: Use image node_id 2 for calling a global function with example usage: update(fid, body) and returns: request