code: def maxnomlen(atrv):
      """Given a string containing a nominal type definition, returns the
      string len of the biggest component.
  
      A nominal type is defined as seomthing framed between brace ({}).
  
      Parameters
      ----------
      atrv : str
         Nominal type definition
  
      Returns
      -------
      slen : int
         length of longest component
  
      Examples
      --------
      maxnomlen("{floup, bouga, fl, ratata}") returns 6 (the size of
      ratata, the longest nominal value).
  
      >>> maxnomlen("{floup, bouga, fl, ratata}")
      6
      """
      nomtp = get_nom_val(atrv)
      return max(len(i) for i in nomtp)
  
imports: from __future__ import division, print_function, absolute_import
  import re
  import itertools
  import datetime
  from functools import partial
  import numpy
  from scipy._lib.six import next
label_desc: Use image node_id 5 for calling a global function with example usage: maxnomlen(atrv) and returns: max