code: def g_to_node_encodings(self, g):
      encodings = {"bindings": self.g_to_node_bindings(g)}
      for mode in ["current", "default"]:
          if (
              len(g._complex_encodings["node_encodings"][mode].keys())
              > 0
          ):
              if not ("complex" in encodings):
                  encodings["complex"] = {}
              encodings["complex"][mode] = g._complex_encodings[
                  "node_encodings"
              ][mode]
      return encodings
  
imports: from typing import List, Optional
  import io, pyarrow, requests, sys
  from graphistry.privacy import Mode, Privacy
  from .ArrowFileUploader import ArrowFileUploader
  from .util import setup_logger
label_desc: Use image node_id 39 for calling the ArrowUploader obj's underlying member method code with example usage: obj.g_to_node_encodings(g) and returns: encodings