code: def generate_uuid_based_oid(length=None):
      
      length = min(length or OID_LENGTH, OID_MAX_LENGTH)
  
      while True:
          yield uuid.uuid4().hex.upper()[:length]
docs: OID generator which uses uuid.uuid4 (random UUIDs) to produce result.